15.7 How to Update This Index
When you add a new problem to the book:
- Open
problems_data.csvin a spreadsheet or text editor - Add a new row with the required fields: title, platform, problem_id, difficulty, chapter, chapter_num, anchor, tags, techniques
- Use comma-separated values in the tags and techniques columns, wrapping the entire value in quotes when it contains commas
- Rebuild the book with
sh build.sh - All lookup tables will automatically update
15.7.1 Example CSV Entry
Your New Problem,LeetCode,9999,Medium,Array,02,new-problem,"Google, Amazon, Top 100 Liked, Blind 75","dp-tabulation, hash-table"
15.7.3 Techniques Format
The techniques field supports comma-separated technique anchor IDs for:
- Dynamic Programming:
dp-memoization,dp-tabulation,dp-unbounded-knapsack,kadanes-algorithm - Backtracking:
backtracking-choose-explore-unchoose-pattern,backtracking-pass-by-value-pattern,backtracking-mark-unmark-pattern - Two Pointer:
two-pointer,sliding-window - Data Structures:
stack,queue,heap,hash-table,bst,trie,linked-list,array - Searching:
binary-search,quickselect - Matrix Traversal:
matrix-traversal,dfs(for matrices),bfs(for matrices) - Tree Traversal:
dfs(for trees),bfs(for trees) - Graph Traversal:
undirected-graph-dfs,undirected-graph-bfs,dag-dfs,dag-bfs,union-find,undirected-graph-cycle-detection,dag-cycle-detection - Sorting:
sorting-bubble-sort,sorting-insertion-sort,sorting-merge-sort,sorting-quick-sort,sorting-topological-sort - Statistical Sampling:
rejection-sampling,reservoir-sampling - Paradigms:
greedy,dnc,recursion - Matrix Operations:
matrix-manipulation - Advanced:
bitwise,simulation,probability,minimax
Use quotes around the techniques value if it contains commas.
Note: When using dfs or bfs techniques, the problem will be categorized by chapter:
- Tree chapter results in Tree DFS or Tree BFS categorization
- Matrix chapter results in Matrix DFS or Matrix BFS categorization
- Graph chapter results in Graph-specific traversal patterns