- Clone Even Numbers
- Reverse String
- Reverse Array
- Two Sum
- Shortest Subarray Unsorted
- Dutch National Flag
- Move Zeroes to End
- Kadane's Algorithm
- Sliding Window
- Zero Sum Subarray
- Binary Search
- First Duplicate
- Closest Element
- Search Insert Position
- Cyclically Sorted Min
- Find With Unknown Length
- Square Root of an Integer
- Find Array Peak
- Fibonacci
- Power
- Print Combos
- Phone Number Mnemonics
- Array Subsets
- Array Permutations
- Coin Change
- Maze Path Easy
- Maze Path Hard
- Word Break
- Sudoku Solver
- N Queens
- Linked List Implementation
- Sort Linked List of 0s, 1s, 2s
- Split list's odd and even nodes
- LRU Cache
- Smallest Subarray Covering All Values
- Reverse a Linked List
- Check if LL is a palindrome
- Stack Implementation
- Find Number in Stack
- Create Queue with 2 Stacks
- Create 2 Stacks with Array
- Find Max in Stack
- Evaluate an Infix expression
- Queue Implementation
- Sliding Window Sums
- Stock Prices
- Queue With Max
- Max of Sliding Window
$ git clone https://github.com/jeanpaulsio/algorithms_in_ruby.git
$ bundle install
$ asdf install
$ ruby lib/arrays_and_strings/reverse_string_test.rb
If you prefer not to run tests manually, you can run:
$ bundle exec guard