4 ms·
Short version: if all you need to do is to insert and check for existence (in this case, whether a node has already been explored), use a set, not a list. News
by mercurial 13y ago
Short version: if all you need to do is to insert and check for existence (in this case, whether a node has already been explored), use a set, not a list. News at 11.
- xerophtye 13y agoYep, that pretty much sums it up. I was hoping for a more detailed analysis of situations and data structures... not just ONE specific scenario.