Python interview with a Google engineer: Print folder structure

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 5

  • @interviewingio
    @interviewingio  3 года назад +1

    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&

  • @m_squared5775
    @m_squared5775 2 года назад +3

    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.

  • @yoyonel1808
    @yoyonel1808 3 года назад +6

    Sadly it's unreadable (on smartphone). Only 25% of the screen record is relevant :/

  • @SuperAyman1992
    @SuperAyman1992 2 года назад

    Could you please share the solution he said you will share with the interviewee