My solutions for some common algorithm problems.
- Array Intersection
- Array Intersection with Duplicates
- Find Duplicate in Array
- Search array for elements that add up to specific sum
- Construct array from elements 1..k, with no consecutive same elements
- Sub array with maximum sum
- Calculate array A so that Sum { | Ai - Ai+1 | } is max
- BFS
- DFS
- Find Islands problem
- Binary Search
- Guessing game
- Lexicographical Search
- Reverted Array Search
- Set
- Stack
- FizzBuzz
- Power of x in n
- Square root of x
- Count media reading from file
- Run-length encoding