/leetcode

🎓leetcode solutions in c#

Primary LanguageC#

drawing

leetcode

🎓 coding exercises from leetcode

Stats

44 questions solved so far.

Notes

  • Sliding Window
    • input - linked list, array, string
    • questions type - longest/shortest substring, subarray
  • Dynamic Programming
    • questions type - maximum/minimum subarray/array/subset
  • Two Pointers
    • input - sorted array or linked list
    • questions type - find pair, tripler or subarray
  • Fast and slow pointers
    • input - linked list or array
    • questions type - length of linked list, position of element
  • Merge Intervals
    • questions type - overlapping intervals, mutually exclusive intervals, maximum cpu load
  • Cyclic sort
    • input - sorted array
    • questions type - missing/duplicate/smallest number in sorted array
  • Inplace reversal of linked list
    • questions type - reverse linked list without extra memory, reverse sublist, reverse every k-element sub-list
  • BFS
    • questions type - traverse tree level by level, zig zag traversal
  • DFS
    • questions type - traverse inorder, preorder, postorder or searching node closer to leaf
  • Two heaps
    • questions type - smallest/largest elements of set, scheduling, priority queue
  • Backtracking
    • questions type - permutations

Easy

Arrays

DynamicProgramming

Medium

DynamicProgramming

Backtracking

Hard