CSCheatsheets

Cheatsheets

Interview prep (DSA, machine learning and LLMs, high- and low-level design, behavioural, SQL and CS fundamentals) and markets (technical and fundamental analysis of stocks). 1229 reference cards across 20 sheets, plus a combined system design sheet. Search below to jump straight to a card.

Interview prep

Coding, ML and system design rounds · 409 cards

Start from what you need

Coding round tomorrowDSA last-minute checklist, then the keyword → pattern guide.Which pattern fits this problem?Keyword decision guide and the 17 "Which X?" trees.ML / LLM screen25 rapid-fire questions with one-line answers.Design a service in 45 minutesInterview route, estimation, then the 35-problem table.Machine-coding roundTime plan, package layout, rubric, then the problem playbook.Design an LLM productLLM system design framework, failure modes, serving levers.Dynamic programming drillThe 4-question framework, then every DP family with its state and transition.Concurrency questionsCorrectness boundaries, locking in code, and the concurrency toolkit.

Sheets

Coding interviews

DSA & Dynamic Programming

Data structures, algorithm patterns, decision ladders, 16 code templates in Python and Java, graph algorithms, every DP family and a filterable 434-problem bank.

18 sections · 127 cards
Contents
  1. DSA atlas — topics, patterns & routes
  2. Interview playbook & constraints
  3. Keyword decision guide
  4. “Which X?” decision trees (17 topics)
  5. Pattern templates — recognise · code · complexity · pitfalls · problems
  6. Code templates in Python and Java
  7. Core patterns (Striver A2Z tables)
  8. Trees, graphs, tries, strings, bits
  9. Graph algorithms — templates
  10. Dynamic programming — every family in depth
  11. Dynamic programming — 11 patterns
  12. Recursion & backtracking decision trees
  13. Backtracking, gotchas, follow-up chains
  14. Data-structure operations
  15. Java vs Python quick syntax
  16. Problem finder — 434 problems (filterable)
  17. Python essentials & complexity
  18. Last-minute checklist
ML engineering

ML, AI & LLMs

Maths and statistics, classical ML, deep learning, transformers, LLM training and alignment, RAG, agents, evaluation, safety, inference, and ML system design with 3 full walkthroughs.

24 sections · 120 cards
Contents
  1. Full ML, LLM & GenAI topic atlas
  2. Map & algorithm selection
  3. Math and statistics foundations
  4. Formulas: metrics, losses, optimisers, model maths
  5. Data, classical ML, evaluation
  6. Classical algorithms in depth
  7. Feature engineering, explainability, fairness and privacy
  8. Data-centric ML: labels, augmentation, anomalies, time series
  9. Deep learning, architectures, generative models
  10. Applied ML domains
  11. Transformer and LLM internals
  12. LLMs: training, prompting, agents, RAG
  13. LLM training at scale, fine-tuning and alignment
  14. AI agents and AI engineering
  15. LLM evaluation, safety and security
  16. LLM inference & serving
  17. LLM system design & production ML
  18. MLOps and production ML platformNew
  19. Classic ML system design
  20. ML system design: three full walkthroughs
  21. Classical AI foundations
  22. Rapid-fire interview questions
  23. Implement from scratch: ML coding round
  24. Last-minute checklist
System design

High-Level Design

Requirements to architecture: estimation, building blocks, databases, consistency and consensus, resilience, APIs, security, 35 problem summaries and 8 full worked designs.

16 sections · 69 cards
Contents
  1. HLD atlas: topics and routes
  2. HLD: requirements to architecture
  3. Numbers to know & estimation
  4. Trade-offs, stores, caching & scale
  5. Building blocks catalogue
  6. Databases and storage internals
  7. HLD problem breakdowns (35 problems)
  8. Worked designs: eight full walkthroughs
  9. Distributed systems essentials
  10. Consistency, consensus and time
  11. Scalability, resilience and deployment patterns
  12. Probabilistic and specialised data structures
  13. APIs and communication protocols
  14. Security, observability and operations
  15. Follow-up questions and strong answers
  16. HLD last-minute checklist
Object design

Low-Level Design

OOP and SOLID, all 23 design patterns, 23 classic problems with entities and APIs, 3 full worked designs, concurrency and the machine-coding round.

11 sections · 55 cards
Contents
  1. LLD atlas: topics and routes
  2. LLD: model behavior, state, and boundaries
  3. Object-oriented foundations
  4. Design patterns catalogue
  5. LLD problem breakdowns & patterns
  6. LLD problems: entities, APIs and the core move
  7. Worked LLD designs: three walkthroughs and a booking flow
  8. Concurrency, atomicity & error paths
  9. Concurrency toolkit
  10. Machine-coding round: structure, APIs, errors, tests
  11. LLD last-minute checklist
Combined reference

System Design: HLD + LLD

The complete HLD and LLD sheets in one scrollable reference, with the shared design map and interview playbooks up front.

26 sections · 130 cards
Contents
  1. Full system design map & decision flows
  2. Interview playbooks (HLD + LLD)
  3. HLD: requirements to architecture
  4. Numbers to know & estimation
  5. Trade-offs, stores, caching & scale
  6. Building blocks catalogue
  7. Databases and storage internals
  8. HLD problem breakdowns (35 problems)
  9. Worked designs: eight full walkthroughs
  10. Distributed systems essentials
  11. Consistency, consensus and time
  12. Scalability, resilience and deployment patterns
  13. Probabilistic and specialised data structures
  14. APIs and communication protocols
  15. Security, observability and operations
  16. Follow-up questions and strong answers
  17. LLD: model behavior, state, and boundaries
  18. Object-oriented foundations
  19. Design patterns catalogue
  20. LLD problem breakdowns & patterns
  21. LLD problems: entities, APIs and the core move
  22. Worked LLD designs: three walkthroughs and a booking flow
  23. Concurrency, atomicity & error paths
  24. Concurrency toolkit
  25. Machine-coding round: structure, APIs, errors, tests
  26. Last-minute checklist
Interview rounds

Interview Prep: Behavioural, SQL and CS Fundamentals

The SDE II bar round by round, STAR and an eight-story bank with a worked example, SQL with window functions and classic patterns, and quick references for operating systems, networking and databases.

8 sections · 38 cards
Contents
  1. Interview prep atlas: rounds and routes
  2. The SDE II bar: what each round is scoring
  3. Behavioural rounds: STAR and the story bank
  4. SQL for interviews
  5. Operating systems quick reference
  6. Networking quick reference
  7. Databases (DBMS) quick reference
  8. Before the loop

Markets

Technical and fundamental analysis of stocks · 192 cards

Start from what you need

Read a chart top-downTrend, levels, regime, setup, trigger, stop and size in one flow.Size a tradePosition size from the stop, break-even win rates, expectancy and drawdown maths.Pick a strategy for this marketRegime ladder, setup library, CAN SLIM and exit methods.Value a stockWhich method to use, a worked DCF with sensitivity, reverse DCF and multiples.Is this cheap stock a trap?Margin of safety thresholds and the value-trap ladder.Check the numbers are realCash conversion, Beneish, Altman and Piotroski scores.Read a company's statementsHow the three statements link, working-capital days and red flags.Before you place a tradeSession and pre-trade checklists, plus the one-line risk formulas.

Sheets

Markets · trading

Technical Analysis

Market mechanics, Dow theory and stages, price action, candlesticks, chart patterns with Bulkowski statistics, indicators with Python code, Wyckoff and breadth, strategies, risk and position sizing, psychology, backtesting and algo trading.

16 sections · 101 cards
Contents
  1. Technical analysis atlas: topics and routes
  2. Market mechanics: how price moves
  3. Trend, Dow theory and market cycles
  4. Price action: levels, trendlines and structure
  5. Candlesticks: anatomy, patterns and context
  6. Chart patterns: reversals, continuations and breakouts
  7. Indicators: trend, momentum, volatility and volume
  8. Fibonacci, Elliott waves, point and figure
  9. Advanced: smart money, Wyckoff, intermarket and breadth
  10. Strategies and setups
  11. Risk management and position sizing
  12. Trading psychology, plan and journal
  13. Backtesting, walk-forward and forward testing
  14. Algorithmic trading and automation
  15. Common mistakes and fixes
  16. Last-minute checklists
Markets · investing

Fundamental Analysis

Financial statements, ratios and DuPont, valuation multiples and a full worked DCF with sensitivity and reverse DCF, margin of safety, moats and management, earnings-quality scores, earnings season, macro, sector metrics, investing styles and an India lens.

14 sections · 91 cards
Contents
  1. Fundamental analysis atlas: topics and routes
  2. Foundations: value, price and investing styles
  3. Financial statements: reading the big three
  4. Financial ratios: profitability, returns and leverage
  5. Valuation: multiples, DCF and other models
  6. Margin of safety and value traps
  7. Business quality: moats, industry and management
  8. Earnings quality and distress scores
  9. Earnings season playbook
  10. Macro drivers and sector rotation
  11. Sector-specific metrics
  12. Investing styles and classic screens
  13. India lens: filings, governance and red flags
  14. Research workflow, sell rules and checklists

The markets sheets are educational references built from personal study notes, not investment advice.

Open Varsity courses

Condensed from OpenAlgo's free Open Varsity courses · 628 cards

Open Varsity · Beginner

Stock Market Basics

Inflation and compounding, the six asset classes, SEBI and the market plumbing, T+1 settlement and the closing auction, IPOs and corporate actions, quotes, depth and indices, what moves prices, a beginner roadmap, biases and scams.

8 sections · 61 cards
Contents
  1. Stock market basics: atlas and routes
  2. Money and markets: why invest, where, and what a share is
  3. The market ecosystem: regulators, plumbing and settlement
  4. Going public: funding, IPOs and corporate actions
  5. Reading the market: quotes, depth, indices and jargon
  6. What moves prices: expectations, macro and events
  7. Becoming an investor: first steps, mindset and staying safe
  8. Checklists and one-line formulas
Open Varsity · Beginner

Technical Analysis (Open Varsity)

Charts, Dow theory, trends, support and resistance, breakouts and Fibonacci, candle and chart patterns, gaps, every major indicator with 16 years of NSE backtest results, combining indicators, top-down timeframes, systems, position sizing and discipline.

8 sections · 58 cards
Contents
  1. Technical analysis (Open Varsity): atlas and routes
  2. Getting started: what TA is, charts, candles and timeframes
  3. Structure and levels: Dow theory, trends, support and resistance, breakouts, Fibonacci
  4. Candlestick patterns and why context decides
  5. Chart patterns: reversals, continuations and gaps
  6. Indicators: averages, momentum, volatility, volume and trend strength
  7. From analysis to action: timeframes, systems, risk and discipline
  8. Checklists and one-line formulas
Open Varsity · Beginner

Python for Traders

Python from zero for market data: setup, types, f-strings and strings, lists, dicts, loops and functions, modules, venv, errors, files, JSON and dates, NumPy and pandas, cleaning, resampling and charts, symbols, timings, APIs, quotes, WebSockets and returns.

7 sections · 50 cards
Contents
  1. Python for traders: atlas and routes
  2. Getting started: setup, variables, types, operators and strings
  3. Core programming: data structures, decisions, loops and functions
  4. Libraries, files and robust code
  5. NumPy and pandas: arrays, tables, cleaning, time series and charts
  6. Python for the markets: symbols, timings, OHLCV, APIs and returns
  7. Checklists and quick reference
Open Varsity · Beginner

Futures Trading

Futures contracts and specs, orders, spread and slippage, long, short and payoff, margin, SPAN and pledging, mark-to-market, costs and tax, basis and carry, expiry, rollover and spreads, settlement, open interest, bans, bands, hedging, sizing and gap risk.

9 sections · 37 cards
Contents
  1. Futures trading: atlas and routes
  2. What a future is: contracts, rivals, purpose and specs
  3. Trading mechanics: orders, liquidity, direction and payoff
  4. Margin and money: leverage, SPAN, mark-to-market, costs and tax
  5. Pricing and the cycle: basis, expiry, rollover and spreads
  6. Settlement and positioning: delivery vs cash, index vs stock, open interest
  7. Market controls: position limits, bans, adjustments and halts
  8. Risk and discipline: hedging, sizing, gaps and leverage
  9. Pre-trade checklist and one-line formulas
Open Varsity · Beginner

Options Basics

Calls and puts, premium, strike and expiry, index vs stock settlement, moneyness, intrinsic and time value, the option chain, spreads and liquidity, the four payoffs, Greeks, implied volatility and the expected move, OI and PCR, strike and expiry choice, margin, charges, event risk and a pre-trade checklist.

9 sections · 47 cards
Contents
  1. Options basics: atlas and routes
  2. Why and what: rights, jobs, rivals and the two building blocks
  3. The contract: premium, strike, expiry and settlement
  4. Reading the price: moneyness, value split, live P&L, chain and spread
  5. The four payoffs and who has the edge
  6. Volatility and positioning: Greeks, IV, expected move, OI and PCR
  7. Choosing strike and expiry, margin, costs and event risk
  8. Trading safely: sizing, defined risk, mistakes and spreads
  9. Checklists and quick reference
Open Varsity · Intermediate

Options Strategies

Reading payoffs and the nine numbers, bull and bear spreads, back spreads, synthetics, butterflies and condors, straddles and strangles, iron condors and flies, ratio spreads, jade lizards, calendars, margin, pledging and penalties, adjustments, position Greeks and choosing a structure.

10 sections · 48 cards
Contents
  1. Options strategies: atlas and routes
  2. Reading a strategy: the payoff chart and the nine numbers
  3. Bullish strategies: single legs, spreads, back spreads and flies
  4. Bearish strategies: mirrors of the bullish set
  5. Volatility strategies: betting on a big move, or on calm
  6. Range and income: condors, flies, ratios and lizards
  7. Advanced and time: double structures, calendars and synthetics
  8. Funding: margin, collateral, pledging and penalties
  9. Managing: adjustments, position Greeks, IV regime, choosing and sizing
  10. Checklists and quick reference
Open Varsity · Intermediate

Algo Trading with Python

OpenAlgo Python SDK setup, symbols, quotes and history, NumPy and pandas, Matplotlib, Plotly and Streamlit, 100+ openalgo.ta indicators, signals and scanners, a strategy playbook, orders, VectorBT backtests, metrics, optimisation, walk-forward, ML, WebSockets and position sizing.

12 sections · 58 cards
Contents
  1. Algo trading with Python: atlas and routes
  2. Foundations: setup, secrets, the client and Python essentials
  3. Market data: symbols, quotes, history, NumPy and pandas
  4. Charts and apps: Matplotlib, Plotly and Streamlit
  5. Indicators with openalgo.ta: trend, momentum, volatility, volume, oscillators and utilities
  6. Signals and scanning
  7. Strategy playbook: equity, intraday, pairs, momentum, seasonal and options
  8. Execution: placing and managing orders
  9. Testing: backtests, metrics, optimisation and walk-forward
  10. Going live: machine learning, streaming and position sizing
  11. My setup: a personal live-trading runbook
  12. Checklists and quick reference
Open Varsity · Expert

Quantitative Trading

The 78-chapter professional course: market structure and costs, statistics and multiple testing, microstructure, execution tech and kill switches, ARIMA, GARCH, OU and cointegration, Black-76, Greeks, VIX and VRP, alpha families, honest backtesting, ML, portfolio risk and production.

11 sections · 94 cards
Contents
  1. Quantitative trading: atlas and routes
  2. Module A · Quant careers and Indian market structure
  3. Module B · Maths, statistics and research foundations
  4. Module C · Indian market microstructure
  5. Module D · HFT, execution and trading technology
  6. Module E · Time series, econometrics and forecasting
  7. Module F · Derivatives, volatility and arbitrage
  8. Module G · Alpha research and strategy families
  9. Module H · Backtesting, machine learning and portfolio construction
  10. Module I · Production, compliance and career
  11. Checklists and quick reference
Open Varsity · Expert

Statistical Arbitrage

Pairs and baskets on NSE stocks, honestly: data and biases, the short leg in India, stationarity, correlation vs cointegration, Engle-Granger, multiple testing, spreads and z-scores, Kalman hedges, Johansen, factor-neutral books, sizing, validation and implementation.

7 sections · 27 cards
Contents
  1. Statistical arbitrage: atlas and routes
  2. Foundations and honesty
  3. Stationarity, correlation and cointegration
  4. Building a pair, then breaking it
  5. Doing it properly: dynamic hedges, baskets, books and risk
  6. Research to reality: validation and implementation
  7. Checklists and quick reference
Open Varsity · Beginner

AmiBroker AFL

AmiBroker Formula Language from arrays and Plot to parameters, shapes, GFX, explorations and scanners, Buy/Sell/Short/Cover, ExRem and no repainting, ApplyStop, sizing, backtest reports, optimisation, five strategies, multi-timeframe, alerts and OpenAlgo orders.

9 sections · 41 cards
Contents
  1. AmiBroker AFL: atlas and routes
  2. The AFL language: arrays, functions, logic and time
  3. Charting and visualisation
  4. Exploration and scanning
  5. Building trading systems
  6. Backtesting and optimisation
  7. Strategy playbook
  8. Real-time, alerts and automation
  9. Checklists and quick reference
Open Varsity · Beginner

Taxation for Traders and Investors

Indian tax for traders and investors: the three buckets, new vs old regime, advance tax, capital gains and STT, intraday as speculative income, F&O as business income, turnover, audit, loss carry-forward, US stocks, Schedule FA, crypto and which ITR to file.

7 sections · 29 cards
Contents
  1. Taxation for traders and investors: atlas and routes
  2. Start here: filing, buckets, regimes and deadlines
  3. The equity investor: capital gains, STT, intraday and gifts
  4. The F&O trader: business income, turnover, audit and losses
  5. Global and crypto
  6. Filing it right
  7. Checklists and quick reference
Open Varsity · Beginner

Risk Management

Risk management for Indian markets: survival maths, the risk pyramid and money-safety base, asset allocation and rebalancing, position sizing, stops, expectancy, drawdowns, limits and heat, leverage, margin and the broker RMS, slippage and gaps, and F&O risk from futures to expiry day.

8 sections · 44 cards
Contents
  1. Risk management: atlas and routes
  2. Risk is not just losing money
  3. The money-safety system
  4. Investor risk management
  5. Trader risk management
  6. Leverage, margin and execution risk
  7. F&O risk for beginners
  8. Staying current and quick reference
Open Varsity · Beginner

Trading Psychology & Risk Playbooks

Trading psychology and risk playbooks: loss aversion, revenge, FOMO and the herd, discipline as a system, the journal, compulsive trading, when and how to hedge, the option seller's playbook, and a one-page risk plan for every type of participant.

6 sections · 34 cards
Contents
  1. Trading psychology and risk playbooks: atlas and routes
  2. Your mind: emotions, biases and discipline
  3. Hedging: when, why and when not
  4. The option-seller and hedger playbook
  5. Complete risk plans by user type
  6. The master checklist and staying current

Each Open Varsity sheet condenses one free course from openalgo.in/learn in its own words, with links back to the source chapters. Educational, not investment or tax advice.

Inside a sheet: / search · L listen · Esc clear · Compact mode for dense review · Print = A4 landscapeItems marked New were added in the latest revision. Study progress is saved in this browser.