Christian Ohanaja
Posts
Notes
Extras
Navigation
Home
Posts
Notes
Extras
Extras
Small, useful (a couple useless) C++ programs I wrote studying for Data Structures.
2D Array From String
AVL (Insertion + Deletion)
AVL (Insertion)
AVL (Left Right Rotation)
AVL (Right Left Rotation)
AVL (Single Left Rotation)
AVL (Single Right Rotation)
Binary Search Tree (Inorder Printing)
Binary Search Tree (Level Order Printing)
Binary Search Tree (Postorder Printing)
Binary Search Tree (Preorder Printing)
Breadth First Search (Adjacency List)
Breadth First Search (Adjacency Matrix)
Bubble Sort
Bucket Sort
Calculating the Height of a Binary Tree
Contains Duplicates (Hashmap)
Delete Values in Queue
Depth First Search (Adjacency List)
Depth First Search (Adjacency Matrix)
Factorial
Fibonacci Number
Graph (Adjacency List Initialization)
Graph (Adjacency Matrix Initialization)
Hashing (Direct Hashing)
Hashing (Double Hashing)
Hashing (Linear Probing)
Hashing (Quadratic Probing)
Heap Sort (With Explanation)
Hello, World!
Inorder Predecessor of a Node
Inorder Successor of a Node
Insertion Sort
Kattis Competiton (ABC)
Kattis Competiton (ACM Contest Scoring)
Kattis Competiton (Bacon, Eggs, and Spam)
Kattis Competiton (I've Been Everywhere, Man)
Kattis Competiton (Roaming Romans)
Kattis Competiton (Weak Vertices)
Length Between Two Characters
Merge Sort (Merging)
Merge Sort (Splitting)
Merge Sort (with split diagram)
Merge Sort
Number Of Nodes in a Binary Tree
Priority Queue (Linked List Implementation)
Priority Queue (Max Heap Implementation)
Priority Queue (Min Heap Implementation)
Queue (2 Stack Implementation (Dequeue))
Queue (2 Stack Implementation (Enqueue))
Queue From Two Stacks
Queue (Linked List Implementation)
Quick Sort (With Explanation)
Random Number Generator
Recursively Print A Linked List
Reverse A Stack
Reverse A String
Selection Sort
Shell Sort (With Explanation)
Simple Stack
Stack (Array Implementation)
Stack (Linked List Implementation)
Sum Of Nodes in a Binary Tree
Tree (Non-Random Generator (VALID BST))
Tree (Random Generator (NOT VALID BST))
Valid Anagram