Loading your progress…
LeetCode Foundations
Python Training
SQL Training
LeetCode Practice
Review
⋮
Checking account…
Admin
Account
Sign in
Sign out
Reset password
Local only
Sign in
Create account
How to solve a problem
Collapse
Understand
— read the problem, typed function signature, output, and examples.
Choose the tools
— identify the useful data structure or pattern.
Plan
— work through one small example before coding.
Code
— implement the simplest correct approach.
Analyze
— identify
Time O(...) and Auxiliary Space O(...)
, excluding the required return/output buffer.
Run
— test and trace failures.
Review
— compare with the answer and complexity.
DSA map
Collapse
Recommend ▾
Admin
User progress
DB structure
Review completed questions
Browse everything you have finished.
Back to practice
All topics
Basics + combinations
Basics
Combinations
Question order
Recently completed
Most attempts
Basics
Combinations
Python
▶ Run
Enter auto-indents • Tab inserts 4 spaces • Shift+Tab unindents
Loading Python…
Hint
Learn basics
Answer
AI review
Attempts