trekhleb / trekhleb/javascript-algorithms
BFS image has a generic tree in it, but the algorithm only works with a binary trees
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 197k
- Forks
- 31k
- PR merge metrics
- No merged PRs in 30d
Description
The image here shows a generic tree (3 children on the first level from root), while the algorithm's code is for binary tree only. Moreover, the algorithm is in the tree/ subfolder, maybe it worth naming it binary-tree?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the tree/breadth-first-search path and compare the linked image with the algorithm's binary-tree behavior. Update the image or naming so the documentation accurately reflects the implementation, and verify that the resulting path and description are consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100