Question DSA-TP-0055
MediumWhat is the time complexity of the sliding-window approach for 'longest substring without repeating characters'?
- A.
O(2ⁿ)
- B.
O(n²)
- C.
O(n)
- D.
O(n log n)
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Two Pointers and Sliding Window question
What is the time complexity of the sliding-window approach for 'longest substring without repeating characters'?
O(2ⁿ)
O(n²)
O(n)
O(n log n)
Sign up free to see the answer and a step-by-step explanation.