NOW AVAILABLE ON THE GOOGLE PLAY STORE
X
HOME
JAVA
PYTHON
COURSES
Implementations of
Algorithms
&
Datastructures
from a
Geek's Viewpoint
Prepare for Interviews
Take full advantage of our broad library of algorithms for technical interview screening.
Study for Exams
Get ready access to the fundamental algorithms and data structures that you need to succeed.
Write better software
Use these codes as a reference library or simply copy and paste into your own applications.
Java Programs
Python Programs
bitwise
Clear Bit
Clear Lowest Bit
Count Bits
Find Odd Float Singleton
Find Odd Integer Singleton
Intersection
Is Even
Is Odd
Most Significant Set Bit (MSB)
Negation
Power Set
Power of Two
Reverse Bits of Byte (8-bit)
Reverse Bits of Integer (16-bit)
Reverse Bits of Short (16-bit)
Set Bit
Subtraction
Sum of Tuple
Test Bit
Union
boggle
2D Array Deep Copy
Boggle Solver
Boggle Solver (Recursive Portion)
bst
Add
BST Node & Datastructure
Circular Doubly Linked List: Iterative
Circular Doubly Linked List: Recursive
Clear
Closest Node
DSW Algorithm
Delete from BST
Find
Find Immediate Common Parent
Find Immediate Common Parent
Height
In-order Traversal
Is BST
Is Empty
Level Order Traversal
Morris In-Order Traversal
Post-order Traversal
Pre-order Traversal
Print BST by Level
Size
Sum Single Children
Visit
Visit Leaves In-order
dynamic_programming
Longest Common Subsequence
Longest Decreasing Subsequence
Longest Increasing Subsequence
Longest V-Shaped Subsequence
Maximum Sub-Array Sum
Optimum Grid Harvest
Path of Optimum Grid Harvest
Positive Subset Sum
Space Efficient LCS
Subset Sum with Endless Supplies
Subset Sum: Coin Exact Change
The Partition Problem
egg_drop
Egg Drop Experiment: Number of Drops
Egg Drop Strategy
graph
Bellman-Ford's Shortest Path
Count Paths in Graph
Dijkstra with Constraint
Dijkstra's Shortest Path
Prim's Minimum Spanning Tree
Warshall-Floyd All-To-All Shortest Path
large_integer
Is Smaller
Minus
Plus
Size
To Integer Stack
Value
numbers
Addition of Fractions
All Primes
Division of Fractions
Greatest Common Divisor
Index of Prime
Is Prime
Lowest Common Multiplier
Multiplication of Fractions
N Queens Problem
Permutation
Permutation Index
Power(base, exponent)
Subtraction of Fractions
queue_with_stack
Clear
Dequeue
Enqueue
Peek
Size
isEmpty
search
Heapselect: Find the Top k values
Heapselect: Kth Greatest Value
Iterative Binary Search
Quickselect: Find the Top k Values
Quickselect: Kth Greatest Value
Recursive Binary Search
singly_linked_list
Add After
Add After
Add All to Tail
Add Before
Add to Head
Add to Tail
Clear
Counting Sort
Cycle Start
Delete Duplicates
Delete Element
Delete Node
Delete from Head
Delete from Tail
Find
Find Intersection
Find Kth from Head
Find Kth from Tail
Is Empty
Merge Sorted Linked Lists
Print Statistics
Reverse
Reverse Recursive
Reverse in Pair
Size
Sort
Swap Elements
To Array
sorting
Bubble Sort
Bucket Sort
Counting Sort
Cycle Sort
Heap Sort
Insertion Sort
Merge Sort
Quicksort
Radix Sort
Selection Sort
stack_with_get_min
Clear
Get Minimum
Is Empty
Peek
Pop
Push
Size
stack_with_linked_list
Is Empty
Peep
Pop
Push
Size
string
Count all Characters
Count the Given Character
Find Unique characters
string_search_algorithm
Find All Matches of Substring
Find Substring
KMP String Search Algorithms
KMP: Find All Matches of Substring
Knuth Morris Pratt Prefix Table
trie
Add Word
Find Word
Get Word List
Is Prefix
Remove Word
Trie Node
bitwise
Clear Bit
Clear Lowest Bit
Count Set Bits
Find Odd Float Singleton
Find Odd Singleton
Intersection
Is Even
Is Odd
Is Power of Two
Most Significant Set Bit (MSB)
Negation
Power Set
Reverse Bits
Set Bit
Subtraction
Sum of Tuple
Test Bit
Union
bst
Add Element to BST
BST Clear
BST Closest Node
BST Datastructure
BST Is Empty
BST Size
BST visit
Circular Doubly Linked List: Iterative
Circular Doubly Linked List: Recursive
DSW Algorithm
Delete from BST
Find in BST
Height of BST
Immediate Common Parent
In-order Traversal
Is BST
Is BST
Level Order Traversal
Morris In-Order Traversal
Post-order Traversal
Pre-order Traversal
Print BST by Level
Sum Single Children of BST
Visit Leaves In-order
dynamic_programming
Longest Common Subsequence
Longest Decreasing Subsequence
Longest Increasing Subsequence
Longest V-Shaped Subsequence
Maximum Sub-Array Sum
Optimum Grid Harvest
Path of Optimum Grid Harvest
Positive Subset Sum
Space Efficient LCS
Subset Sum of Coins for Exact Change
Subset Sum with Endless Supplies
The Partition Problem
graph
Bellman-Ford's Shortest Path
Count Paths in Graph
Dijkstra with Constraint
Dijkstra's Shortest Path
numbers
Addition of Fractions
All Primes
Division of Fractions
GCD
Index of Prime
Is Prime
LCM
Multiplication of Fractions
N Queens Problem
Permutation
Permutation Index
Power(base, exponent)
Subtraction of Fractions
queue_with_stack
Clear
Dequeue
Enqueue
Peek
Size
isEmpty
singly_linked_list
Add After
Add All to Tail
Add Before
Add to Head
Add to Tail
Clear
Counting Sort
Cycle Start
Delete Duplicates
Delete Element
Delete Node
Delete from Head
Delete from Tail
Find
Find Intersection
Find Kth from Head
Find Kth from Tail
Is Empty
Merge Sorted Linked Lists
Print Statistics
Reverse
Reverse Recursive
Reverse in Pair
Size
Sort
Swap Elements
To Array
sorting
Bubble Sort In Python
Bucket Sort In Python
Counting Sort In Python
Cycle Sort In Python
Heap Sort In Python
Insertion Sort In Python
Merge Sort In Python
Quicksort In Python
Radix Sort in Python
Selection Sort in Python
stack_with_get_min
Clear
Get Minimum
Is Empty
Peek
Pop
Push
Size