Roadmap Start learning
F7FoundationShared foundationEasy
Programming and Algorithms Foundations
Python, core data structures, complexity, recursion, sorting, searching and the single-pass patterns that answer most screening questions.
1.9 h of lessons~1.7 h of practice across 7 problems
Ready to start
Lessons0 / 6 lessons
Mastery · target 80%0 / 7 solved
Completing the lessons finishes the module. Mastery also needs 80% of its problems solved.
What you will be able to do
- Write clear, idiomatic Python using lists, dictionaries, sets and generators
- Analyse time and space complexity and choose a data structure accordingly
- Solve array problems in one pass by keeping the right running state
- Write correct recursive functions and convert them to iteration
- Implement binary search and reason about its loop invariants
Lessons
1.Single-Pass Algorithms on Price SeriesRunning state, Kadane's algorithm, prefix sums and monotonic deques: O(n) solutions to the most common coding questions.25m2.Python Essentials for InterviewsThe built-in containers and what each operation costs, comprehensions and generators, the collections module, sorting with keys, and the Python pitfalls interviewers like to probe.18m3.Complexity AnalysisBig-O, Big-Omega and Big-Theta precisely, how to count the work in loops and recursions, the master theorem, amortised analysis of dynamic arrays and space complexity.18m4.Recursion and MemoisationHow to write a correct recursion, read its recursion tree, collapse repeated work with functools caching, and convert to iteration when Python's recursion limit bites.17m5.Sorting and Binary SearchComparison sorts and stability, the n log n lower bound, counting sort, binary search with clean invariants and bisect, and binary search on the answer.19m6.Numerical Computation in PythonHow doubles are stored, where rounding error comes from, catastrophic cancellation, compensated summation and math.fsum, Python's unbounded integers, Fraction and Decimal, and comparing floats safely.18m
Practice problems (7)
Where this module fits
- Quant Trader: Recommended
- Quant Researcher: Required
- Quant Developer: Required