IntermediateFree coursePython
Python: 20 Interview Programs with Solutions
Twenty classic Python interview problems in four short lessons. Each has the question, examples, the approach, a tested solution with edge cases, its time and space complexity, and a likely follow-up question.
📘 4 lessons⏱ About 2 h🌐 English🎓 Self-paced

What you'll learn
- Solve 20 of the most common Python interview problems, from reversing a string to Kadane's algorithm
- Explain your approach, then code it cleanly, handling empty and tricky inputs
- State the time and space complexity of each solution
- Recognise the patterns behind many problems: two pointers, hash maps, stacks, sliding and counting
- Prepare for the follow-up questions interviewers ask
Course syllabus
Part 1: Warm-ups
Part 2: Strings and counting
Part 3: Arrays and lists
Part 4: Classic patterns
Before you start
- Python for Beginners and the Python Functions and Methods course (or equivalent): lists, dictionaries, strings, functions, loops
- Python 3.9 or newer