You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing graph traversal, I first chose a LinkedList to maintain all visited nodes.
But I can't figure out why there would be a false negative test case.
List<Stmt> isVisited = new LinkedList<>();
ArrayDeque<Stmt> queue = new ArrayDeque<>(); // BFS queue
queue.add(cfg.getEntry());
Then, if I change to use a HashSet, all test cases will pass.
The text was updated successfully, but these errors were encountered:
When doing graph traversal, I first chose a LinkedList to maintain all visited nodes.
But I can't figure out why there would be a false negative test case.
Then, if I change to use a HashSet, all test cases will pass.
The text was updated successfully, but these errors were encountered: