All Questions
3 questions
3
votes
1
answer
2k
views
BFS to check if path from start node to end node exists
I'm trying to solve a problem from leetcode called Jump Game and it seems to be a pretty simple graph problem where we have to find if a path exists from a start node to an end node. I personally ...
3
votes
1
answer
121
views
Storing configurations of states to a database - Breadth First Search
I have wrote some code to store all possible configurations of a set of numbers in the sliding tile puzzle but the process of doing slow is very slow.
Say, for instance, I have a sliding tile puzzle ...
5
votes
1
answer
3k
views
Binary tree level order traversal algoritm
I am trying to solve this Binary tree lever order traversal:
...