TheAlgorithms / C-Plus-Plus

Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.
https://thealgorithms.github.io/C-Plus-Plus
MIT License
29.71k stars 7.05k forks source link

feat: Wanted to add an algorithm for bfs(queue) traversal for a binary tree. #2675

Closed DevBhatia22 closed 6 months ago

DevBhatia22 commented 6 months ago

Detailed description

I couldn't find the bfs traversal and i would be glad to add it my self.

Context

Because it's an important algo.

Possible implementation

No response

Additional information

No response

DevBhatia22 commented 6 months ago

@vil02 check please.

vil02 commented 6 months ago

It seems to be implemented.

However, the mentioned file would need a big cleanup (e.g. adding real tests and removing memory leaks).