Coding OnePager

Coding interview data structures and algos in plain C

Usage

  1. Open coding_onepager.c and click copy raw content.
  2. Paste to hackerrank.com, leetcode.com or other platforms

Implemented features:

  • Sort:
    • Insertion Sort
    • Quick sort
    • Heap sort
    • Pancake sort
  • Search:
    • Binary search
  • Hashtable
  • Stack
  • Queue
  • Graph (adjacency list graph)
  • Helpers:
    • power (no math.h required)
    • print array
    • swap elements
    • flip array
    • find max element