Remove every node whose value contains a search string — together with its whole subtree — and return what is left. Then render the filtered tree with indentation, live as the user types. A Waymo senior frontend phone screen.
Remove every node whose value contains a search string — together with its whole subtree — and return what is left. Then render the filtered tree with indentation, live as the user types. A Waymo senior frontend phone screen.
Remove every node whose value contains a search string — together with its whole subtree — and return what is left. Then render the filtered tree with indentation, live as the user types. A Waymo senior frontend phone screen.
The discussion opens with the full question.