Guided course · Coding Interviews
DSA Coding Patterns in C#
- Recognise common array, string and collection patterns.
- Practise search, windows, intervals, trees and graphs.
- Use C# collections with their costs and pitfalls in mind.
- Check edge cases and explain time and space complexity.
Intermediate5 modules · 20 lessons · 6 h 10 min · 18 practice tests · 37 coding problems · 2 free
Module 1 · Foundations
2 lessons · 34 minModule 2 · Linear Structures
7 lessons · 1 h 57 min- 03Arrays and Strings in C#: Prefix Sums, Kadane, In-Place Rotation and Counting Arrays (included with Full Access), 1 practice test16 min
- 04Hashing Patterns in C#: Dictionary, HashSet, CollectionsMarshal and Bad Hash Codes (included with Full Access), 1 practice test18 min
- 05Two Pointers in C#: Sorted Pairs, 3Sum, Container With Most Water and In-Place Partitioning (included with Full Access), 1 practice test15 min
- 06Linked Lists in C#: Reversal, Fast and Slow Pointers, Merging and an LRU Cache (included with Full Access), 1 practice test21 min
- 07Sliding Window in C#: Fixed Windows, Grow-and-Shrink, Minimum Window Substring (included with Full Access)16 min
- 08Stacks in C#: Matching Brackets, Monotonic Stacks and Expression Evaluation (included with Full Access), 1 practice test16 min
- 09Queues and Deques in C#: Queue<T>, Two-Stack Queues and Sliding Window Maximum (included with Full Access), 1 practice test15 min
Module 3 · Searching and Trees
5 lessons · 1 h 26 min- 10Binary Search in C#: Lower Bound, Array.BinarySearch, Rotated Arrays and Searching the Answer (included with Full Access), 1 practice test17 min
- 11Sorting and Selection in C#: Merge Sort, Quickselect, Counting Sort and Custom Comparers (included with Full Access), 1 practice test19 min
- 12Tree Traversals in C#: Recursive and Iterative DFS, BFS Level Order and Stack Depth (included with Full Access), 1 practice test16 min
- 13Binary Search Trees in C#: Validation, LCA, Kth Smallest and SortedSet (included with Full Access), 1 practice test17 min
- 14Tries in C#: Prefix Search, Autocomplete and Wildcard Words (included with Full Access), 1 practice test17 min
Module 4 · Graphs, Heaps and Intervals
4 lessons · 1 h 8 min- 15Graphs with BFS and DFS in C#: Adjacency Lists, Grid Shortest Paths, Islands and Bipartite Checks (included with Full Access), 1 practice test17 min
- 16Topological Sort, Dijkstra with PriorityQueue and Union-Find in C# (included with Full Access), 1 practice test18 min
- 17Heaps with PriorityQueue in C#: Top K, Merge K Sorted, Running Median and API Pitfalls (included with Full Access), 1 practice test17 min
- 18Interval Problems in C#: Merge, Insert, Greedy Scheduling, Meeting Rooms and Sweep Lines (included with Full Access), 1 practice test16 min
Module 5 · Practice and Assessment
2 lessons · 1 h 5 minCoding problems
Count the stretches with a given totalFull AccessGroup words with the same lettersFull AccessA path from the top with a given totalFull AccessSums of any range, answered fastFull AccessA study order that respects every prerequisiteFull AccessCount the islands on a mapFull AccessHow many meeting rooms are neededFull AccessIs it a valid search tree?Full AccessRead a tree level by levelFull AccessSteps until a higher valueFull AccessThe best run of consecutive daysFull AccessThe shortest stretch that reaches a targetFull AccessThe smallest van that finishes in timeFull AccessThe two panels that hold the most waterFull AccessWhere a value starts and ends in a sorted listFull AccessHow long until every server has the updateFull AccessThe highest reading in every windowFull AccessThe median of a growing listFull AccessCompact a sorted list in placeFull AccessThree adjustments that cancel outFull AccessRead a grid in a clockwise spiralFull AccessWhere a scrambled tag appearsFull AccessWork out a postfix calculationFull AccessCount the events in a sliding time windowFull AccessFind a value in a rotated sorted listFull AccessThe k-th largest scoreFull AccessMerge sorted lists from many serversFull AccessJoin numbers into the largest numberFull AccessCancel the fewest bookingsFull AccessFind where a linked list loops backFull AccessThe k-th smallest value in a search treeFull AccessA set with next-value lookupsFull AccessA prefix tree for search suggestionsFull AccessThe fewest steps across a warehouse floorFull AccessSplit people into two teamsFull AccessThe first cable that closes a loopFull AccessMatch words with a dot wildcardFull Access
TechInterviewNotes Editorial Team ·