Recognise the pattern.Then solve.
Lessgo is the prep system for software interviews, from your first beginner lesson to the final round. 1,501 problems, 49 patterns and every company loop — in one plan that remembers what you’re about to forget.
Problem
Given a sorted array of integers, return the indices of two numbers that add up to target, using O(1) extra space.
- 01order lets you discard a whole side
- 02a pair search
- 03no hash map — move indices instead
Pattern
Why Lessgo
Most prep is five hundred random problems and a spreadsheet. You solve, you forget, and on the day it’s a blank page. Lessgo is built around how recall actually works: recognise the shape, climb the ladder, review right before you’d forget.
The method
Three loops. One system.
01 · Recognise
Every pattern has a tell.
“Sorted array, find a pair” is two pointers before you’ve read the constraints. Lessgo teaches the signal for each of the 49 patterns, so the first minute of a round goes to the right idea — not a guess.
Sorted array; find a pair / triplet hitting a target, or shrink from both ends
Two Pointers
Contiguous subarray/substring asked to be longest/shortest/max/min under a constraint
Sliding Window
"Subarray sum equals k" / "divisible by k", or many range-sum queries
Prefix Sum + HashMap
A linked list that might have a cycle, or you need the middle in one pass
Fast & Slow Pointers
Reverse a list, a sublist, or every k nodes — O(1) extra space
In-place LL Reversal
Intervals / ranges that may overlap: merge, insert, or count rooms/conflicts
Merge Intervals
02 · Practise
Ladders, not lists.
Each pattern comes with a graded ladder that climbs from the canonical problem to the one that shows up in onsites — drawn from LeetCode, CSES, Codeforces and reported OAs.
Two Pointers
ladder · 3 / 7
- Valid Palindrome
- Two Sum II - Input Array Is Sorted
- 3Sum
- Sort Colors
- Container With Most Water
- Trapping Rain Water
- Concatenation of Array
03 · Remember
Review right before you forget.
Rate how a solve felt and Lessgo schedules the next review on a spaced-repetition curve. Weak spots surface on their own; strong ones get out of your way.
Recall over 30 days
next review · day 14
Sorted array; find a pair / triplet hitting a target, or shrink from both ends
Two Pointers
Contiguous subarray/substring asked to be longest/shortest/max/min under a constraint
Sliding Window
"Subarray sum equals k" / "divisible by k", or many range-sum queries
Prefix Sum + HashMap
A linked list that might have a cycle, or you need the middle in one pass
Fast & Slow Pointers
Reverse a list, a sublist, or every k nodes — O(1) extra space
In-place LL Reversal
Intervals / ranges that may overlap: merge, insert, or count rooms/conflicts
Merge Intervals
Ascend · 49 climbs, one per pattern
Climb a pattern.
Earn the S.
Each climb is nine real LeetCode problems, each the last plus one twist. The help fades as you rise: plan it, arrange it, fill it, write it, then beat the Boss cold.
Ascend
Climb a pattern. Earn the S.
Step 1 of 9 · Plan
Maximum Average Subarray I
The base idea: a window of exactly k elements slides one step at a time.
Ascend · 49 climbs, one per pattern
Climb a pattern.
Earn the S.
Each climb is nine real LeetCode problems, each the last plus one twist. The help fades as you rise: plan it, arrange it, fill it, write it, then beat the Boss cold.
- E
Fixed windows · Plan
Maximum Average Subarray I
The base idea: a window of exactly k elements slides one step at a time.
- E
Fixed windows · Arrange
Maximum Number of Vowels in a Substring of Given Length
Same fixed window, but you track a count instead of a sum.
- D
Grow and shrink · Plan
Minimum Size Subarray Sum
New: the window size now changes. Grow on the right, shrink from the left.
- D
Grow and shrink · Fill
Longest Substring Without Repeating Characters
Longest instead of shortest, and you can jump l forward instead of shrinking step by step.
- C
At most k · Fill
Max Consecutive Ones III
The "at most k bad things" form: the window stays valid while it holds at most k zeros.
- C
At most k · Write
Longest Repeating Character Replacement
Same "at most k" idea, but the bad elements are everything except the most frequent letter.
- B
Strip the story · Write
Fruit Into Baskets
A story problem. Strip the story: longest window with at most 2 distinct values.
- A
Cover everything · Write
Minimum Window Substring
Shortest window again, but validity needs every character of t (with counts).
- S
The Boss · Boss
Subarrays with K Different Integers
Boss: count windows with exactly K distinct. No notes, no help unless you ask.
Go · your coach
She already knows where you slip.
Go reads every verdict you get on LeetCode, Codeforces and Lessgo. Ask her for a plan, a reality check or a mock interview, by typing or out loud.
Ask her
The map
Every pattern, connected.
49 patterns in 16 families. Lessgo knows what each one builds on and what it gets mistaken for — so you learn them in an order that compounds.
Hover or tap any point on the map.
49
patterns
Coverage
Everything you’d otherwise tab between.
- Problems
- 0
- One tracker, every source
- Patterns
- 0
- Across 16 categories
- CSES problems
- 0
- The full competitive set
- Codeforces problems
- 0
- Rated 800 → 3400
- Company loops
- 0
- Rounds, frequency and plans
- OA questions
- 0
- Reported online assessments
0%
OA ready
0%
Interview ready
6
reviews due
14d
streak
3/3
today
Company loops
Every loop, mapped.
Rounds, what interviewers listen for, question frequency, and a 7, 14 or 30-day plan — for 40 companies.
Browse companiesYour interview is already on the calendar.
Start with one pattern today. Lessgo will tell you what comes next.
Free for 7 days, no card. Then one-time passes from ₹149: nothing renews by itself. See pricing