├── .gitignore ├── .tool-versions ├── CLAUDE.md ├── JavaScript ├── lib │ ├── best_time_to_buy_and_sell_stock.js │ ├── characterReplacement.js │ ├── coin_change.js │ ├── contains_duplicate.js │ ├── countSubstrings.js │ ├── findMin.js │ ├── group_anagrams.js │ ├── hasCycle.js │ ├── hash_table.js │ ├── lengthOfLongestSubstring.js │ ├── maxArea.js │ ├── max_region_sum.js │ ├── maximum_subarray.js │ ├── merge_intervals.js │ ├── minWindow.js │ ├── numIslands.js │ ├── pacificAtlantic.js │ ├── product_of_array_except_self.js │ ├── removeNthFromEnd.js │ ├── reverse_linked_list.js │ ├── three_sum.js │ ├── two_sum.js │ ├── unique_paths.js │ └── valid_parentheses.js ├── package-lock.json ├── package.json └── test │ ├── best_time_to_buy_and_sell_stock.test.js │ ├── coin_change.test.js │ ├── container_with_most_water.test.js │ ├── contains_duplicate.test.js │ ├── find_minimum_in_rotated_sorted_array.test.js │ ├── group_anagrams.test.js │ ├── has_cycle.test.js │ ├── hash_table.test.js │ ├── longest_repeating_character_replacement.test.js │ ├── longest_substring_without_repeating_characters.test.js │ ├── max_region_sum.test.js │ ├── maximumSubarray.test.js │ ├── maximum_subarray.test.js │ ├── merge_intervals.test.js │ ├── minimum_window_substring.test.js │ ├── number_of_islands.test.js │ ├── pacific_atlantic_water_flow.test.js │ ├── palindromic_substrings.test.js │ ├── product_of_array_except_self.test.js │ ├── remove_nth_from_end.test.js │ ├── reverse_linked_list.test.js │ ├── three_sum.test.js │ ├── two_sum.test.js │ ├── unique_paths.test.js │ └── valid_parentheses.test.js ├── Python ├── lib │ ├── best_time_to_buy_and_sell_stock.py │ ├── character_replacement.py │ ├── coin_change.py │ ├── contains_duplicate.py │ ├── count_substrings.py │ ├── find_min.py │ ├── group_anagrams.py │ ├── has_cycle.py │ ├── length_of_longest_substring.py │ ├── max_area.py │ ├── maximum_subarray.py │ ├── merge_intervals.py │ ├── min_window.py │ ├── num_islands.py │ ├── pacific_atlantic.py │ ├── product_of_array_except_self.py │ ├── remove_nth_from_end.py │ ├── reverse_linked_list.py │ ├── three_sum.py │ ├── two_sum.py │ ├── unique_paths.py │ └── valid_parentheses.py └── test │ ├── test_best_time_to_buy_and_sell_stock.py │ ├── test_coin_change.py │ ├── test_container_with_most_water.py │ ├── test_contains_duplicate.py │ ├── test_fibs.py │ ├── test_find_minimum_in_rotated_sorted_array.py │ ├── test_group_anagrams.py │ ├── test_has_cycle.py │ ├── test_longest_repeating_character_replacement.py │ ├── test_longest_substring_without_repeating_characters.py │ ├── test_maximum_subarray.py │ ├── test_merge_intervals.py │ ├── test_minimum_window_substring.py │ ├── test_number_of_islands.py │ ├── test_pacific_atlantic_water_flow.py │ ├── test_palindromic_substrings.py │ ├── test_product_of_array_except_self.py │ ├── test_remove_nth_from_end.py │ ├── test_reverse_linked_list.py │ ├── test_three_sum.py │ ├── test_two_sum.py │ ├── test_unique_paths.py │ └── test_valid_parentheses.py ├── README.md ├── Ruby ├── .rspec ├── Gemfile ├── Gemfile.lock ├── Rakefile ├── lib │ ├── best_time_to_buy_and_sell_stock.rb │ ├── character_replacement.rb │ ├── coin_change.rb │ ├── contains_duplicate.rb │ ├── count_substrings.rb │ ├── find_min.rb │ ├── group_anagrams.rb │ ├── has_cycle.rb │ ├── in_words.rb │ ├── length_of_longest_substring.rb │ ├── max_area.rb │ ├── maximum_subarray.rb │ ├── merge_intervals.rb │ ├── min_max_stack.rb │ ├── min_max_stack_queue.rb │ ├── min_window.rb │ ├── num_islands.rb │ ├── pacific_atlantic.rb │ ├── product_of_array_except_self.rb │ ├── remove_nth_from_end.rb │ ├── reverse_linked_list.rb │ ├── three_sum.rb │ ├── two_sum.rb │ ├── unique_paths.rb │ └── valid_parentheses.rb └── spec │ ├── best_time_to_buy_and_sell_stock_spec.rb │ ├── coin_change_spec.rb │ ├── container_with_most_water_spec.rb │ ├── contains_duplicate_spec.rb │ ├── find_minimum_in_rotated_sorted_array_spec.rb │ ├── group_anagrams_spec.rb │ ├── has_cycle_spec.rb │ ├── in_words_spec.rb │ ├── longest_repeating_character_replacement_spec.rb │ ├── longest_substring_without_repeating_characters_spec.rb │ ├── maximum_subarray_spec.rb │ ├── merge_intervals_spec.rb │ ├── min_max_stack_queue_spec.rb │ ├── min_max_stack_spec.rb │ ├── minimum_window_substring_spec.rb │ ├── number_of_islands_spec.rb │ ├── pacific_atlantic_water_flow_spec.rb │ ├── palindromic_substrings_spec.rb │ ├── product_of_array_except_self_spec.rb │ ├── remove_nth_from_end_spec.rb │ ├── reverse_linked_list_spec.rb │ ├── spec_helper.rb │ ├── three_sum_spec.rb │ ├── two_sum_spec.rb │ ├── unique_paths_spec.rb │ └── valid_parentheses_spec.rb └── shared ├── generate_all_tests.sh ├── generators ├── javascript_test_generator.js ├── python_test_generator.py └── ruby_test_generator.rb └── problems.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | __pycache__ -------------------------------------------------------------------------------- /.tool-versions: -------------------------------------------------------------------------------- 1 | nodejs 19.8.1 2 | python 3.9.6 3 | ruby 3.1.3 4 | -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /JavaScript/lib/best_time_to_buy_and_sell_stock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/best_time_to_buy_and_sell_stock.js -------------------------------------------------------------------------------- /JavaScript/lib/characterReplacement.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/characterReplacement.js -------------------------------------------------------------------------------- /JavaScript/lib/coin_change.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/coin_change.js -------------------------------------------------------------------------------- /JavaScript/lib/contains_duplicate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/contains_duplicate.js -------------------------------------------------------------------------------- /JavaScript/lib/countSubstrings.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/countSubstrings.js -------------------------------------------------------------------------------- /JavaScript/lib/findMin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/findMin.js -------------------------------------------------------------------------------- /JavaScript/lib/group_anagrams.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/group_anagrams.js -------------------------------------------------------------------------------- /JavaScript/lib/hasCycle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/hasCycle.js -------------------------------------------------------------------------------- /JavaScript/lib/hash_table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/hash_table.js -------------------------------------------------------------------------------- /JavaScript/lib/lengthOfLongestSubstring.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/lengthOfLongestSubstring.js -------------------------------------------------------------------------------- /JavaScript/lib/maxArea.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/maxArea.js -------------------------------------------------------------------------------- /JavaScript/lib/max_region_sum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/max_region_sum.js -------------------------------------------------------------------------------- /JavaScript/lib/maximum_subarray.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/maximum_subarray.js -------------------------------------------------------------------------------- /JavaScript/lib/merge_intervals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/merge_intervals.js -------------------------------------------------------------------------------- /JavaScript/lib/minWindow.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/minWindow.js -------------------------------------------------------------------------------- /JavaScript/lib/numIslands.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/numIslands.js -------------------------------------------------------------------------------- /JavaScript/lib/pacificAtlantic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/pacificAtlantic.js -------------------------------------------------------------------------------- /JavaScript/lib/product_of_array_except_self.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/product_of_array_except_self.js -------------------------------------------------------------------------------- /JavaScript/lib/removeNthFromEnd.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/removeNthFromEnd.js -------------------------------------------------------------------------------- /JavaScript/lib/reverse_linked_list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/reverse_linked_list.js -------------------------------------------------------------------------------- /JavaScript/lib/three_sum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/three_sum.js -------------------------------------------------------------------------------- /JavaScript/lib/two_sum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/two_sum.js -------------------------------------------------------------------------------- /JavaScript/lib/unique_paths.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/unique_paths.js -------------------------------------------------------------------------------- /JavaScript/lib/valid_parentheses.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/lib/valid_parentheses.js -------------------------------------------------------------------------------- /JavaScript/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/package-lock.json -------------------------------------------------------------------------------- /JavaScript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/package.json -------------------------------------------------------------------------------- /JavaScript/test/best_time_to_buy_and_sell_stock.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/best_time_to_buy_and_sell_stock.test.js -------------------------------------------------------------------------------- /JavaScript/test/coin_change.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/coin_change.test.js -------------------------------------------------------------------------------- /JavaScript/test/container_with_most_water.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/container_with_most_water.test.js -------------------------------------------------------------------------------- /JavaScript/test/contains_duplicate.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/contains_duplicate.test.js -------------------------------------------------------------------------------- /JavaScript/test/find_minimum_in_rotated_sorted_array.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/find_minimum_in_rotated_sorted_array.test.js -------------------------------------------------------------------------------- /JavaScript/test/group_anagrams.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/group_anagrams.test.js -------------------------------------------------------------------------------- /JavaScript/test/has_cycle.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/has_cycle.test.js -------------------------------------------------------------------------------- /JavaScript/test/hash_table.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/hash_table.test.js -------------------------------------------------------------------------------- /JavaScript/test/longest_repeating_character_replacement.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/longest_repeating_character_replacement.test.js -------------------------------------------------------------------------------- /JavaScript/test/longest_substring_without_repeating_characters.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/longest_substring_without_repeating_characters.test.js -------------------------------------------------------------------------------- /JavaScript/test/max_region_sum.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/max_region_sum.test.js -------------------------------------------------------------------------------- /JavaScript/test/maximumSubarray.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/maximumSubarray.test.js -------------------------------------------------------------------------------- /JavaScript/test/maximum_subarray.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/maximum_subarray.test.js -------------------------------------------------------------------------------- /JavaScript/test/merge_intervals.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/merge_intervals.test.js -------------------------------------------------------------------------------- /JavaScript/test/minimum_window_substring.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/minimum_window_substring.test.js -------------------------------------------------------------------------------- /JavaScript/test/number_of_islands.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/number_of_islands.test.js -------------------------------------------------------------------------------- /JavaScript/test/pacific_atlantic_water_flow.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/pacific_atlantic_water_flow.test.js -------------------------------------------------------------------------------- /JavaScript/test/palindromic_substrings.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/palindromic_substrings.test.js -------------------------------------------------------------------------------- /JavaScript/test/product_of_array_except_self.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/product_of_array_except_self.test.js -------------------------------------------------------------------------------- /JavaScript/test/remove_nth_from_end.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/remove_nth_from_end.test.js -------------------------------------------------------------------------------- /JavaScript/test/reverse_linked_list.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/reverse_linked_list.test.js -------------------------------------------------------------------------------- /JavaScript/test/three_sum.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/three_sum.test.js -------------------------------------------------------------------------------- /JavaScript/test/two_sum.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/two_sum.test.js -------------------------------------------------------------------------------- /JavaScript/test/unique_paths.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/unique_paths.test.js -------------------------------------------------------------------------------- /JavaScript/test/valid_parentheses.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/JavaScript/test/valid_parentheses.test.js -------------------------------------------------------------------------------- /Python/lib/best_time_to_buy_and_sell_stock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/best_time_to_buy_and_sell_stock.py -------------------------------------------------------------------------------- /Python/lib/character_replacement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/character_replacement.py -------------------------------------------------------------------------------- /Python/lib/coin_change.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/coin_change.py -------------------------------------------------------------------------------- /Python/lib/contains_duplicate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/contains_duplicate.py -------------------------------------------------------------------------------- /Python/lib/count_substrings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/count_substrings.py -------------------------------------------------------------------------------- /Python/lib/find_min.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/find_min.py -------------------------------------------------------------------------------- /Python/lib/group_anagrams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/group_anagrams.py -------------------------------------------------------------------------------- /Python/lib/has_cycle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/has_cycle.py -------------------------------------------------------------------------------- /Python/lib/length_of_longest_substring.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/length_of_longest_substring.py -------------------------------------------------------------------------------- /Python/lib/max_area.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/max_area.py -------------------------------------------------------------------------------- /Python/lib/maximum_subarray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/maximum_subarray.py -------------------------------------------------------------------------------- /Python/lib/merge_intervals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/merge_intervals.py -------------------------------------------------------------------------------- /Python/lib/min_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/min_window.py -------------------------------------------------------------------------------- /Python/lib/num_islands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/num_islands.py -------------------------------------------------------------------------------- /Python/lib/pacific_atlantic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/pacific_atlantic.py -------------------------------------------------------------------------------- /Python/lib/product_of_array_except_self.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/product_of_array_except_self.py -------------------------------------------------------------------------------- /Python/lib/remove_nth_from_end.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/remove_nth_from_end.py -------------------------------------------------------------------------------- /Python/lib/reverse_linked_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/reverse_linked_list.py -------------------------------------------------------------------------------- /Python/lib/three_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/three_sum.py -------------------------------------------------------------------------------- /Python/lib/two_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/two_sum.py -------------------------------------------------------------------------------- /Python/lib/unique_paths.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/unique_paths.py -------------------------------------------------------------------------------- /Python/lib/valid_parentheses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/lib/valid_parentheses.py -------------------------------------------------------------------------------- /Python/test/test_best_time_to_buy_and_sell_stock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_best_time_to_buy_and_sell_stock.py -------------------------------------------------------------------------------- /Python/test/test_coin_change.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_coin_change.py -------------------------------------------------------------------------------- /Python/test/test_container_with_most_water.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_container_with_most_water.py -------------------------------------------------------------------------------- /Python/test/test_contains_duplicate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_contains_duplicate.py -------------------------------------------------------------------------------- /Python/test/test_fibs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_fibs.py -------------------------------------------------------------------------------- /Python/test/test_find_minimum_in_rotated_sorted_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_find_minimum_in_rotated_sorted_array.py -------------------------------------------------------------------------------- /Python/test/test_group_anagrams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_group_anagrams.py -------------------------------------------------------------------------------- /Python/test/test_has_cycle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_has_cycle.py -------------------------------------------------------------------------------- /Python/test/test_longest_repeating_character_replacement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_longest_repeating_character_replacement.py -------------------------------------------------------------------------------- /Python/test/test_longest_substring_without_repeating_characters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_longest_substring_without_repeating_characters.py -------------------------------------------------------------------------------- /Python/test/test_maximum_subarray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_maximum_subarray.py -------------------------------------------------------------------------------- /Python/test/test_merge_intervals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_merge_intervals.py -------------------------------------------------------------------------------- /Python/test/test_minimum_window_substring.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_minimum_window_substring.py -------------------------------------------------------------------------------- /Python/test/test_number_of_islands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_number_of_islands.py -------------------------------------------------------------------------------- /Python/test/test_pacific_atlantic_water_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_pacific_atlantic_water_flow.py -------------------------------------------------------------------------------- /Python/test/test_palindromic_substrings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_palindromic_substrings.py -------------------------------------------------------------------------------- /Python/test/test_product_of_array_except_self.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_product_of_array_except_self.py -------------------------------------------------------------------------------- /Python/test/test_remove_nth_from_end.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_remove_nth_from_end.py -------------------------------------------------------------------------------- /Python/test/test_reverse_linked_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_reverse_linked_list.py -------------------------------------------------------------------------------- /Python/test/test_three_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_three_sum.py -------------------------------------------------------------------------------- /Python/test/test_two_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_two_sum.py -------------------------------------------------------------------------------- /Python/test/test_unique_paths.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_unique_paths.py -------------------------------------------------------------------------------- /Python/test/test_valid_parentheses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Python/test/test_valid_parentheses.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/README.md -------------------------------------------------------------------------------- /Ruby/.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --format documentation 3 | -------------------------------------------------------------------------------- /Ruby/Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/Gemfile -------------------------------------------------------------------------------- /Ruby/Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/Gemfile.lock -------------------------------------------------------------------------------- /Ruby/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/Rakefile -------------------------------------------------------------------------------- /Ruby/lib/best_time_to_buy_and_sell_stock.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/best_time_to_buy_and_sell_stock.rb -------------------------------------------------------------------------------- /Ruby/lib/character_replacement.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/character_replacement.rb -------------------------------------------------------------------------------- /Ruby/lib/coin_change.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/coin_change.rb -------------------------------------------------------------------------------- /Ruby/lib/contains_duplicate.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/contains_duplicate.rb -------------------------------------------------------------------------------- /Ruby/lib/count_substrings.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/count_substrings.rb -------------------------------------------------------------------------------- /Ruby/lib/find_min.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/find_min.rb -------------------------------------------------------------------------------- /Ruby/lib/group_anagrams.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/group_anagrams.rb -------------------------------------------------------------------------------- /Ruby/lib/has_cycle.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/has_cycle.rb -------------------------------------------------------------------------------- /Ruby/lib/in_words.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/in_words.rb -------------------------------------------------------------------------------- /Ruby/lib/length_of_longest_substring.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/length_of_longest_substring.rb -------------------------------------------------------------------------------- /Ruby/lib/max_area.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/max_area.rb -------------------------------------------------------------------------------- /Ruby/lib/maximum_subarray.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/maximum_subarray.rb -------------------------------------------------------------------------------- /Ruby/lib/merge_intervals.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/merge_intervals.rb -------------------------------------------------------------------------------- /Ruby/lib/min_max_stack.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/min_max_stack.rb -------------------------------------------------------------------------------- /Ruby/lib/min_max_stack_queue.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/min_max_stack_queue.rb -------------------------------------------------------------------------------- /Ruby/lib/min_window.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/min_window.rb -------------------------------------------------------------------------------- /Ruby/lib/num_islands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/num_islands.rb -------------------------------------------------------------------------------- /Ruby/lib/pacific_atlantic.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/pacific_atlantic.rb -------------------------------------------------------------------------------- /Ruby/lib/product_of_array_except_self.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/product_of_array_except_self.rb -------------------------------------------------------------------------------- /Ruby/lib/remove_nth_from_end.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/remove_nth_from_end.rb -------------------------------------------------------------------------------- /Ruby/lib/reverse_linked_list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/reverse_linked_list.rb -------------------------------------------------------------------------------- /Ruby/lib/three_sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/three_sum.rb -------------------------------------------------------------------------------- /Ruby/lib/two_sum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/two_sum.rb -------------------------------------------------------------------------------- /Ruby/lib/unique_paths.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/unique_paths.rb -------------------------------------------------------------------------------- /Ruby/lib/valid_parentheses.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/lib/valid_parentheses.rb -------------------------------------------------------------------------------- /Ruby/spec/best_time_to_buy_and_sell_stock_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/best_time_to_buy_and_sell_stock_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/coin_change_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/coin_change_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/container_with_most_water_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/container_with_most_water_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/contains_duplicate_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/contains_duplicate_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/find_minimum_in_rotated_sorted_array_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/find_minimum_in_rotated_sorted_array_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/group_anagrams_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/group_anagrams_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/has_cycle_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/has_cycle_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/in_words_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/in_words_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/longest_repeating_character_replacement_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/longest_repeating_character_replacement_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/longest_substring_without_repeating_characters_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/longest_substring_without_repeating_characters_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/maximum_subarray_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/maximum_subarray_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/merge_intervals_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/merge_intervals_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/min_max_stack_queue_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/min_max_stack_queue_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/min_max_stack_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/min_max_stack_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/minimum_window_substring_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/minimum_window_substring_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/number_of_islands_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/number_of_islands_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/pacific_atlantic_water_flow_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/pacific_atlantic_water_flow_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/palindromic_substrings_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/palindromic_substrings_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/product_of_array_except_self_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/product_of_array_except_self_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/remove_nth_from_end_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/remove_nth_from_end_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/reverse_linked_list_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/reverse_linked_list_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/spec_helper.rb -------------------------------------------------------------------------------- /Ruby/spec/three_sum_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/three_sum_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/two_sum_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/two_sum_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/unique_paths_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/unique_paths_spec.rb -------------------------------------------------------------------------------- /Ruby/spec/valid_parentheses_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/Ruby/spec/valid_parentheses_spec.rb -------------------------------------------------------------------------------- /shared/generate_all_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/shared/generate_all_tests.sh -------------------------------------------------------------------------------- /shared/generators/javascript_test_generator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/shared/generators/javascript_test_generator.js -------------------------------------------------------------------------------- /shared/generators/python_test_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/shared/generators/python_test_generator.py -------------------------------------------------------------------------------- /shared/generators/ruby_test_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/shared/generators/ruby_test_generator.rb -------------------------------------------------------------------------------- /shared/problems.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaysonvirissimo/practice-thy-algorithms/HEAD/shared/problems.json --------------------------------------------------------------------------------