Skip to content
Search lessons, topics, tests…
Esc

    ↑ ↓ moveEnter openEsc close
    Coding Interviews: back to the track

    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 min
    1. 01How to Solve and Check a Coding Problem in C#: Patterns, Tests and Measured Big-OFree, 1 practice test16 min
    2. 02The C# Angle: Collection Costs, LINQ Costs, Strings and Span in Coding InterviewsFree, 1 practice test18 min

    Module 2 · Linear Structures

    7 lessons · 1 h 57 min
    1. 03Arrays and Strings in C#: Prefix Sums, Kadane, In-Place Rotation and Counting Arrays (included with Full Access), 1 practice test16 min
    2. 04Hashing Patterns in C#: Dictionary, HashSet, CollectionsMarshal and Bad Hash Codes (included with Full Access), 1 practice test18 min
    3. 05Two Pointers in C#: Sorted Pairs, 3Sum, Container With Most Water and In-Place Partitioning (included with Full Access), 1 practice test15 min
    4. 06Linked Lists in C#: Reversal, Fast and Slow Pointers, Merging and an LRU Cache (included with Full Access), 1 practice test21 min
    5. 07Sliding Window in C#: Fixed Windows, Grow-and-Shrink, Minimum Window Substring (included with Full Access)16 min
    6. 08Stacks in C#: Matching Brackets, Monotonic Stacks and Expression Evaluation (included with Full Access), 1 practice test16 min
    7. 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
    1. 10Binary Search in C#: Lower Bound, Array.BinarySearch, Rotated Arrays and Searching the Answer (included with Full Access), 1 practice test17 min
    2. 11Sorting and Selection in C#: Merge Sort, Quickselect, Counting Sort and Custom Comparers (included with Full Access), 1 practice test19 min
    3. 12Tree Traversals in C#: Recursive and Iterative DFS, BFS Level Order and Stack Depth (included with Full Access), 1 practice test16 min
    4. 13Binary Search Trees in C#: Validation, LCA, Kth Smallest and SortedSet (included with Full Access), 1 practice test17 min
    5. 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
    1. 15Graphs with BFS and DFS in C#: Adjacency Lists, Grid Shortest Paths, Islands and Bipartite Checks (included with Full Access), 1 practice test17 min
    2. 16Topological Sort, Dijkstra with PriorityQueue and Union-Find in C# (included with Full Access), 1 practice test18 min
    3. 17Heaps with PriorityQueue in C#: Top K, Merge K Sorted, Running Median and API Pitfalls (included with Full Access), 1 practice test17 min
    4. 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 min
    1. 19Practice Set: Ten DSA Drills in C# with Tests and Checked Complexity (included with Full Access), 1 practice test30 min
    2. 20Final Mock Interview: 25 Questions on DSA Coding Patterns in C# (included with Full Access)35 min

    Coding problems

    Count the stretches with a given totalMediumFull AccessGroup words with the same lettersMediumFull AccessA path from the top with a given totalEasyFull AccessSums of any range, answered fastEasyFull AccessA study order that respects every prerequisiteMediumFull AccessCount the islands on a mapMediumFull AccessHow many meeting rooms are neededMediumFull AccessIs it a valid search tree?MediumFull AccessRead a tree level by levelMediumFull AccessSteps until a higher valueMediumFull AccessThe best run of consecutive daysMediumFull AccessThe shortest stretch that reaches a targetMediumFull AccessThe smallest van that finishes in timeMediumFull AccessThe two panels that hold the most waterMediumFull AccessWhere a value starts and ends in a sorted listMediumFull AccessHow long until every server has the updateHardFull AccessThe highest reading in every windowHardFull AccessThe median of a growing listHardFull AccessCompact a sorted list in placeEasyFull AccessThree adjustments that cancel outMediumFull AccessRead a grid in a clockwise spiralMediumFull AccessWhere a scrambled tag appearsMediumFull AccessWork out a postfix calculationMediumFull AccessCount the events in a sliding time windowMediumFull AccessFind a value in a rotated sorted listMediumFull AccessThe k-th largest scoreMediumFull AccessMerge sorted lists from many serversMediumFull AccessJoin numbers into the largest numberMediumFull AccessCancel the fewest bookingsMediumFull AccessFind where a linked list loops backMediumFull AccessThe k-th smallest value in a search treeMediumFull AccessA set with next-value lookupsMediumFull AccessA prefix tree for search suggestionsMediumFull AccessThe fewest steps across a warehouse floorMediumFull AccessSplit people into two teamsMediumFull AccessThe first cable that closes a loopMediumFull AccessMatch words with a dot wildcardMediumFull Access

    TechInterviewNotes Editorial Team ·