Qualcomm | Phone | HashMap
Anonymous User
801
  1. Given a BST, check if is balanced or not.
    Solution: Wrote a recursive code to check the heights.

  2. Find the contiguos substrings in a string S, with no duplicates.
    Example: S=abcdabcd -> o/p:["a","ab","abc","abcd" ]
    Solution: Used HashSet to check if the string is already seen or not.

Comments (0)