Qualcomm | Phone | HashMap
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-04-08Added By Anonymous
Source: Link
Company: Qualcomm
Role: unknown
Stage: Phone
Location: unknown
Year: unknown
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.
Role: unknown
Stage: Phone
Location: unknown
Year: unknown
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.