Want to give it a shot?? Sign up with us to make sure your upcoming interviews are the best they can be by practicing with our experienced engineers. interviewing.io/signup?.com&
Hint 1: convert the input list of paths in to a sort of Trie Data Structure where instead of chars, it's folder names Hint 2: after building the path tree, navigate the tree as you would a normal tree and print the folder names based on the level order traversal.
Want to give it a shot?? Sign up with us to make sure your upcoming interviews are the best they can be by practicing with our experienced engineers. interviewing.io/signup?.com&
Hint 1: convert the input list of paths in to a sort of Trie Data Structure where instead of chars, it's folder names
Hint 2: after building the path tree, navigate the tree as you would a normal tree and print the folder names based on the level order traversal.
Sadly it's unreadable (on smartphone). Only 25% of the screen record is relevant :/
Could you please share the solution he said you will share with the interviewee