peloton onsite面经

backtracking question based on strings, hackerrank challenge


  1. find lca of 2 values in a binary tree, only if the 2 values exist in the tree.
  2. battleship design. given the size of ships and the board, find when all the ships are destroyed, design a system (a class, functions, data structures)
  3. round by hiring manager- general questions
  4. how would you parse a JSON file. JSON file has nested elements
  5. round by product manager