Tree: Depth-First Search - House Robber III (On Tree)
What is the overall time complexity of the optimal DFS solution that returns two values (rob and not_rob) per node in the House Robber III problem on a binary tree with n nodes?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions