Leetcode 847. Shortest Path Visiting All Nodes
Find the minimum number of steps in a walk that visits every node of an undirected connected graph (n ≤ 12), where revisiting nodes/edges is allowed. This is solved by searching the shortest path in the augmented state space (current node, visited-node bitmask) — typically via BFS/bitmask DP over O(n·2^n) states.
Asked at:
Google
LinkedIn
Intuit
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Early March, 2026
Intuit
Staff
Late October, 2025
Intuit
Senior
Early August, 2025
Mid-level
Hello Interview Premium
Your account is free and you can post anonymously if you choose.