What I did was dijkstra for the following question … I am wondering what would be the brute forces implementation for the same … can I get help with the code of same pls
What is the brute force approach for this question?
@prabh1601
The brute force would simply be a BFS
You can try BFS once and send me the code
In case you face issues I’ll help you out
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.