Interview question
Find the longest substring without repeating characters
Asked in Johnson & Johnson Saudi Arabia Data Engineer interviews
Asked by
59% candidates
Difficulty
Medium
Round
Technical Round
AI synthesized from candidate reports
Question 3 of 5
Find the longest substring without repeating characters
Medium60% Candidate ReportsCODINGJohnson & Johnson Saudi ArabiaData Engineer
Question
Find the longest substring without repeating characters
High-Level Approach
Two pointers + map; update start when duplicate seen.