Bloomberg | Phone Screen | Longest Substring Without Repeating Chars

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2019-11-18Added By Anonymous
Source: Link
Company: Bloomberg
Role: unknown
Stage: Phone Screen
Location: unknown
Year: unknown

Original Post:
intdroduce talk - 11 mins OOP - inheritance encapsulation - 15-20 mins exact question longest substring non repeating - https://leetcode.com/problems/longest-substring-without-repeating-characters/ - 30 mins only got O(n2) O(n2).... waffled for the last 7ish mins on improving O(n2) memory to O(n)... this is my exact code: https://leetcode.com/playground/s6k8i9r9 i mean its a medium with 30% pass rating i had only 30 mins... do you think i did enough based on my ans to pass?
Comments