Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 05 · DSA · Clinic: arrays, hashing and stacks · about 14 min to read

Play it as a journeyTutor comes with a plan

Clinic #06: Longest Substring Without Repeating Characters

Pattern: Sliding Window · LC 3

Longest Substring Without Repeating
Longest Substring Without Repeating · Open board

Yeh board ek string ke upar do pointer dikhata hai jo aage khiskte hain, jaise ek chhoti khidki jo repeat milte hi thoda simat jaati hai, par kabhi peeche nahi jaati.

Before you start. Tumhe itna pata hona chahiye ki ek string letters ki ek line hoti hai, aur har letter ka apna index (position number, jaise ghar ka number) hota hai. Pichhle clinic, Clinic #05: Two Sum, mein tumne dekha tha ki ek hash map “maine yeh pehle dekha hai kya?” turant bata deta hai, wahi cheez yahan bhi kaam aayegi.

Lesson 40 of 96 in DSA

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 1974: Cerf aur Kahn ka sawaal, poora data ek jhatke mein bhejo ya ek-ek karke?
  • Trick jo click hua, poori cheez mat bhejo, ek chhoti khidki bhejo jo aage khiskti rahe
  • Wahi khidki, ab letters pe
  • 0 · Problem, precisely
  • 1 · Invariant aur diagram
  • 2 · Solution Ladder
  • 3 · Naapa hua, teeno, n = 10² se 10⁵
  • 4 · Edge cases, chala ke, teeno pe
  • 5 · Trace, Sol 3, "abcabcbb"
  • 6 · Ek shabd ka bug jo do example pass karta hai
  • 7 · Interview mein pehli baar, raasta
  • 8 · The Tell

Terms it explains: LC 3, index, Sliding window, do pointer, 'a', Sahi idea, aakhri dekha hua index, hash map, O(n), substring, BEST, seedha jump, window + last-index jump, BEST, one pass, second, amortized, left=max(3,5)=5, bahar, best = 3, ek, Clarify, Galat brute pehchano, Key insight, the moment, One pass, dono aage, `max` se left sambhalo, Edge + complexity, contiguous, condition, monotone, peeche, Minimum Size Subarray Sum, shrink, Min Window Substring.

Review DSA