3 ms·
That's why my outer loop goes from low-complexity cases to high-complexity cases, it has basically the same effect as shrinking (without actually having to do a
by gamegoblin 2y ago
That's why my outer loop goes from low-complexity cases to high-complexity cases, it has basically the same effect as shrinking (without actually having to do any work)
- cpeterso 2y agoLike a breath-first search instead of depth-first so you hit the shorter path first?
- gamegoblin 2y agoYes exactly, though not exhaustive, so more like beam search actually