LeetCode β’ Patterns β’ C#
Master Coding Interviews,
One Pattern at a Time
528+ LeetCode solutions organized by algorithm patterns with complexity analysis, visual diagrams, and interview tips β all in C#.
Practice by Category
Problems organized by data structure and algorithm pattern β sorted by problem count
Trees
97BST, DFS, BFS, traversals, tree construction
Strings
54Pattern matching, palindromes, substrings
Arrays
45Two pointers, sliding window, binary search, sorting
Dynamic Programming
38Knapsack, LIS, LCS, coin change, grid DP
Linked Lists
26Reversal, merge, cycle detection, two pointers
Math
25Number theory, geometry, combinatorics
SQL
23Joins, aggregations, window functions
Sorting
21Merge sort, quick sort, counting sort, custom
Backtracking
16Permutations, combinations, N-Queens, Sudoku
Matrix
16Grid traversal, rotation, spiral, search
Bit Manipulation
15XOR tricks, bit masks, power of two
Graphs
11BFS, DFS, topological sort, shortest path
Greedy
9Interval scheduling, activity selection, optimal
Stack
9Monotonic stack, expression parsing, next greater
Design
7LRU Cache, Iterator, data structure design
Trie
3Prefix matching, autocomplete, word search
Heap
1Priority queue, top-K, merge K sorted
More Problems
112Additional LeetCode problems across all topics
Why This Works
Pattern-Based Learning
Problems organized by algorithm patterns so you learn the technique, not just memorize solutions. Recognize patterns across problems.
Visual Explanations
Mermaid diagrams for trees, graphs, and DP state transitions. See how algorithms work step by step.
Multiple Approaches
From brute force to optimal β with time/space complexity analysis for each approach so you understand tradeoffs.
Interview-Ready
Key insights, edge cases, and follow-up questions that interviewers commonly ask. Be prepared for any curveball.
Well-Organized & Fast
Sorted sidebar, category pages, and quick navigation. Find any problem or pattern by category or name instantly.
Structured Study Plan
Follow an 8-week roadmap from fundamentals to advanced topics. Know exactly what to study and when.
Ready to Start?
Follow the structured study guide or dive into any category. Every problem has solutions, explanations, and complexity analysis.