Question DSA-GRAPH-0060
MediumWhich problem can be modelled with a graph and solved by BFS?
- A.
Reversing a string
- B.
Sorting numbers
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Graphs question
Which problem can be modelled with a graph and solved by BFS?
Reversing a string
Sorting numbers
Sign up free to see the answer and a step-by-step explanation.
Finding the median
Word ladder: the fewest one-letter changes from 'cold' to 'warm'