A repository containing several algorithms that are spread across various Data Structures ranging from Strings,Arrays to Graphs. Each of the algorithms are backed by test cases. The implementation is in Java.
Motivation: Coding is a perishable skill hence its important to keep the thought process flowing. Feel free to contribute by adding/improving to the below list.
Arrays
- Find the missing number
- Numbers which add upto the target
- Closest Sum Integers
- Missing number in duplicate array
- Pairs with closest sum to the target element
Strings
- Anagram Check
- Balanced Parenthesis Check
- Lexico Graphic Comparision
- Alphabet Rearrangement
- Find the first non-repeated character
- WordCountEngine
- PalindromeCheck
- Tokenizer
Trees
- Is Binary Search Tree
- Lowest Common Ancestor
- Level Order Traversal Spirally - Iterative Approach
- Is Binary Trees Same
- Size of Binary Tree
- Height of Binary Tree
Graphs