├── .gitattributes ├── .gitignore ├── .pryrc ├── .rspec ├── .vscode ├── launch.json └── settings.json ├── Codepath ├── Week1-Warmup │ ├── java │ │ └── reverse.java │ └── python │ │ └── reverse.py ├── Week2-HashTables │ ├── java │ │ └── findPairs.java │ └── python │ │ └── findPairs.py ├── Week3-LinkedLists │ ├── java │ │ ├── addTwoNumbers.java │ │ ├── deleteDuplicates.java │ │ ├── getLength.java │ │ ├── mergeTwoLists.java │ │ ├── palindrome.java │ │ └── removeNthFromEnd.java │ └── python │ │ ├── addTwoNumbers.py │ │ ├── deleteDuplicates.py │ │ ├── getLength.py │ │ ├── mergeTwoLists.py │ │ ├── palindrome.py │ │ └── removeNthFromEnd.py ├── Week4-Review │ ├── java │ │ └── createDictionary.java │ └── python │ │ └── createDictionary.py ├── Week5-StacksAndQueues │ ├── java │ │ ├── QueueUsingStacks.java │ │ ├── StackUsingQueues.java │ │ ├── evaluatePostfix.java │ │ └── isStackSequenceValid.java │ └── python │ │ ├── QueueUsingStacks.py │ │ ├── StackUsingQueues.py │ │ ├── evaluatePostfix.py │ │ └── isStackSequenceValid.py └── Week6-StringsAndArrays │ ├── java │ ├── bigIntegerIncrement.java │ ├── encode.java │ └── subArraySort.java │ └── python │ ├── bigIntegerIncrement.py │ ├── encode.py │ └── subArraySort.py ├── Gemfile ├── README.md ├── add_numbers_spec.rb ├── chVI ├── Ch VI Big O.txt ├── example12.java └── hi.rb ├── codesignal ├── postmates_spec.rb ├── practicetest.rb └── sum_divisible_by_k.rb ├── data_structures └── linked_list.test.js ├── diagonal_matrix.go ├── google ├── crossword.rb └── max_sum_path.rb ├── gtci └── 01-sliding-window │ ├── 01_avgs_of_subarrays.test.js │ ├── 02_max_sum_subarray.test.js │ ├── 03_smallest_subarray_of_given_sum.test.js │ ├── 04_longest_substring_with_k_distinct_chars.test.js │ ├── 05_fruits_into_baskets.test.js │ ├── 06_no_repeat_substring.test.js │ ├── 07_longest_repeating_substring.test.js │ ├── 08_longest_subarray_with_1s_after_replacement.test.js │ └── 09_permutation_of_pattern_in_string.test.js ├── hackerrank ├── 10-days-of-javascript │ ├── .vscode │ │ └── launch.json │ ├── 0-data-types.js │ ├── 1-factorial.js │ └── 1-let-and-const.js ├── 2d_array_ds.go ├── balanced_brackets.go ├── binary_tree_level_average.rb ├── count_triplets.go ├── cracking-the-coding-interview │ ├── arrays-left-rotation.js │ └── dp-coin-change.js ├── equalizing_array_elements.rb ├── find_substring_most_vowels.rb ├── left-rotation.js ├── logic_expression_spec.rb ├── make_anagram_test.go ├── mini-max-sum.js ├── minimum_swaps2.go ├── new_year_chaos.go ├── practice.sql ├── ransom_note.go ├── sherlock_and_anagrams.go ├── sherlock_and_the_valid_string.go └── two_strings.go ├── leetcode ├── calculate_time.rb ├── critical_connections_in_a_network_spec.rb ├── cut_off_trees_for_golf_spec.rb ├── cut_off_trees_spec.rb ├── easy │ ├── best_time_buy_sell_stock2.js │ ├── contains_duplicate.js │ ├── intersection_of_2_arrays_ii.js │ ├── maximum_depth_binary_tree.js │ ├── nearest_point_same_x_or_y_coordinate.js │ ├── remove_duplicates_from_sorted_array.js │ ├── reverse_linked_list.js │ ├── reverse_string.js │ ├── single_number.js │ ├── valid_anagram.js │ ├── valid_anagram.rb │ ├── valid_palindrome.js │ └── valid_parentheses.js ├── expressive_words.rb ├── find_words_that_can_be_formed_by_characters_spec.rb ├── greatest_common_divisor_strings.test.js ├── happy_number_spec.rb ├── k_closest_points_spec.rb ├── longest_increasing_path_in_a_matrix.rb ├── longest_palindrome_spec.rb ├── maximal_square_spec.rb ├── medium │ ├── reverse_integer.js │ └── rotate_array.js ├── most_common_word.rb ├── moving_average_spec.rb ├── number_of_dice_rolls_with_target_sum_spec.rb ├── number_of_equivalent_domino_pairs_spec.rb ├── prison_cells_after_n_days_spec.rb ├── product_of_array_except_self_spec.rb ├── relative_sort_array.rb ├── reverse_string_ii_spec.rb ├── robot_return_to_origin.rb ├── rotting_oranges_spec.rb ├── search_in_rotated_sorted_array_spec.rb ├── spiral_matrix_ii_spec.rb ├── string_transforms_into_another_string_spec.rb ├── subsequences_spec.rb ├── sudoku.rb ├── two_sum_iv_bst_spec.rb └── two_sum_spec.rb ├── neetcode ├── 001_contains_duplicate.py ├── 001_contains_duplicate_spec.rb ├── 002_valid_anagram.py ├── 002_valid_anagram_spec.rb ├── 003_two_sum.py ├── 003_two_sum_spec.rb ├── 004_group_anagrams.py ├── 004_group_anagrams_spec.rb ├── 005_top_k_frequent_elements.py ├── 005_top_k_frequent_elements_spec.rb ├── 006_encode_and_decode_strings_spec.rb ├── 007_product_of_array_except_self.py ├── 007_product_of_array_except_self_spec.rb ├── 009_longest_consecutive_sequence_spec.rb ├── 010_valid_palindrome_spec.rb ├── 011_two_sum_ii.py ├── 011_two_sum_ii_spec.rb ├── 012_3Sum.py ├── 012_3Sum_spec.rb ├── 013_container_with_most_water.py ├── 013_container_with_most_water_spec.rb ├── 015_best_time_to_buy_stock.py ├── 015_best_time_to_buy_stock_spec.rb ├── 016_longest_substring_without_repeating_characters.py ├── 021_valid_parentheses.py ├── 021_valid_parentheses_spec.rb ├── 022_min_stack_spec.rb ├── 027_binary_search.py ├── 027_binary_search_spec.rb ├── 032_time_based_key_value_store_spec.rb ├── 056_merge_intervals.py ├── 088_merge_sorted_array.py ├── 144_single_number_spec.rb ├── 169_majority_element.py ├── 219_contains_duplicate_ii.py ├── 228_summary_ranges.py ├── 692_top_k_frequent_words.py ├── 904_fruit_into_baskets.py ├── in-memory-DB-TRANSACTIONS.md ├── in-memory-key-value-DB.py └── python_for_interviews │ ├── python-cheatsheet.pdf │ └── python_cheat_sheet.py ├── order_courses_spec.rb ├── package.json └── permutation.rb /.gitattributes: -------------------------------------------------------------------------------- 1 | *.rb linguist-detectable=false 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | __pycache__ 3 | -------------------------------------------------------------------------------- /.pryrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/.pryrc -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Codepath/Week1-Warmup/java/reverse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week1-Warmup/java/reverse.java -------------------------------------------------------------------------------- /Codepath/Week1-Warmup/python/reverse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week1-Warmup/python/reverse.py -------------------------------------------------------------------------------- /Codepath/Week2-HashTables/java/findPairs.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week2-HashTables/java/findPairs.java -------------------------------------------------------------------------------- /Codepath/Week2-HashTables/python/findPairs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week2-HashTables/python/findPairs.py -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/java/addTwoNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/java/addTwoNumbers.java -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/java/deleteDuplicates.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/java/deleteDuplicates.java -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/java/getLength.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/java/getLength.java -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/java/mergeTwoLists.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/java/mergeTwoLists.java -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/java/palindrome.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/java/palindrome.java -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/java/removeNthFromEnd.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/java/removeNthFromEnd.java -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/python/addTwoNumbers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/python/addTwoNumbers.py -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/python/deleteDuplicates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/python/deleteDuplicates.py -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/python/getLength.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/python/getLength.py -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/python/mergeTwoLists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/python/mergeTwoLists.py -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/python/palindrome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/python/palindrome.py -------------------------------------------------------------------------------- /Codepath/Week3-LinkedLists/python/removeNthFromEnd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week3-LinkedLists/python/removeNthFromEnd.py -------------------------------------------------------------------------------- /Codepath/Week4-Review/java/createDictionary.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week4-Review/java/createDictionary.java -------------------------------------------------------------------------------- /Codepath/Week4-Review/python/createDictionary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week4-Review/python/createDictionary.py -------------------------------------------------------------------------------- /Codepath/Week5-StacksAndQueues/java/QueueUsingStacks.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week5-StacksAndQueues/java/QueueUsingStacks.java -------------------------------------------------------------------------------- /Codepath/Week5-StacksAndQueues/java/StackUsingQueues.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week5-StacksAndQueues/java/StackUsingQueues.java -------------------------------------------------------------------------------- /Codepath/Week5-StacksAndQueues/java/evaluatePostfix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week5-StacksAndQueues/java/evaluatePostfix.java -------------------------------------------------------------------------------- /Codepath/Week5-StacksAndQueues/java/isStackSequenceValid.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week5-StacksAndQueues/java/isStackSequenceValid.java -------------------------------------------------------------------------------- /Codepath/Week5-StacksAndQueues/python/QueueUsingStacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week5-StacksAndQueues/python/QueueUsingStacks.py -------------------------------------------------------------------------------- /Codepath/Week5-StacksAndQueues/python/StackUsingQueues.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week5-StacksAndQueues/python/StackUsingQueues.py -------------------------------------------------------------------------------- /Codepath/Week5-StacksAndQueues/python/evaluatePostfix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week5-StacksAndQueues/python/evaluatePostfix.py -------------------------------------------------------------------------------- /Codepath/Week5-StacksAndQueues/python/isStackSequenceValid.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week5-StacksAndQueues/python/isStackSequenceValid.py -------------------------------------------------------------------------------- /Codepath/Week6-StringsAndArrays/java/bigIntegerIncrement.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week6-StringsAndArrays/java/bigIntegerIncrement.java -------------------------------------------------------------------------------- /Codepath/Week6-StringsAndArrays/java/encode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week6-StringsAndArrays/java/encode.java -------------------------------------------------------------------------------- /Codepath/Week6-StringsAndArrays/java/subArraySort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week6-StringsAndArrays/java/subArraySort.java -------------------------------------------------------------------------------- /Codepath/Week6-StringsAndArrays/python/bigIntegerIncrement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week6-StringsAndArrays/python/bigIntegerIncrement.py -------------------------------------------------------------------------------- /Codepath/Week6-StringsAndArrays/python/encode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week6-StringsAndArrays/python/encode.py -------------------------------------------------------------------------------- /Codepath/Week6-StringsAndArrays/python/subArraySort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Codepath/Week6-StringsAndArrays/python/subArraySort.py -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/Gemfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/README.md -------------------------------------------------------------------------------- /add_numbers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/add_numbers_spec.rb -------------------------------------------------------------------------------- /chVI/Ch VI Big O.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/chVI/Ch VI Big O.txt -------------------------------------------------------------------------------- /chVI/example12.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/chVI/example12.java -------------------------------------------------------------------------------- /chVI/hi.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/chVI/hi.rb -------------------------------------------------------------------------------- /codesignal/postmates_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/codesignal/postmates_spec.rb -------------------------------------------------------------------------------- /codesignal/practicetest.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/codesignal/practicetest.rb -------------------------------------------------------------------------------- /codesignal/sum_divisible_by_k.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/codesignal/sum_divisible_by_k.rb -------------------------------------------------------------------------------- /data_structures/linked_list.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/data_structures/linked_list.test.js -------------------------------------------------------------------------------- /diagonal_matrix.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/diagonal_matrix.go -------------------------------------------------------------------------------- /google/crossword.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/google/crossword.rb -------------------------------------------------------------------------------- /google/max_sum_path.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/google/max_sum_path.rb -------------------------------------------------------------------------------- /gtci/01-sliding-window/01_avgs_of_subarrays.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/gtci/01-sliding-window/01_avgs_of_subarrays.test.js -------------------------------------------------------------------------------- /gtci/01-sliding-window/02_max_sum_subarray.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/gtci/01-sliding-window/02_max_sum_subarray.test.js -------------------------------------------------------------------------------- /gtci/01-sliding-window/03_smallest_subarray_of_given_sum.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/gtci/01-sliding-window/03_smallest_subarray_of_given_sum.test.js -------------------------------------------------------------------------------- /gtci/01-sliding-window/04_longest_substring_with_k_distinct_chars.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/gtci/01-sliding-window/04_longest_substring_with_k_distinct_chars.test.js -------------------------------------------------------------------------------- /gtci/01-sliding-window/05_fruits_into_baskets.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/gtci/01-sliding-window/05_fruits_into_baskets.test.js -------------------------------------------------------------------------------- /gtci/01-sliding-window/06_no_repeat_substring.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/gtci/01-sliding-window/06_no_repeat_substring.test.js -------------------------------------------------------------------------------- /gtci/01-sliding-window/07_longest_repeating_substring.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/gtci/01-sliding-window/07_longest_repeating_substring.test.js -------------------------------------------------------------------------------- /gtci/01-sliding-window/08_longest_subarray_with_1s_after_replacement.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/gtci/01-sliding-window/08_longest_subarray_with_1s_after_replacement.test.js -------------------------------------------------------------------------------- /gtci/01-sliding-window/09_permutation_of_pattern_in_string.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/gtci/01-sliding-window/09_permutation_of_pattern_in_string.test.js -------------------------------------------------------------------------------- /hackerrank/10-days-of-javascript/.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/10-days-of-javascript/.vscode/launch.json -------------------------------------------------------------------------------- /hackerrank/10-days-of-javascript/0-data-types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/10-days-of-javascript/0-data-types.js -------------------------------------------------------------------------------- /hackerrank/10-days-of-javascript/1-factorial.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/10-days-of-javascript/1-factorial.js -------------------------------------------------------------------------------- /hackerrank/10-days-of-javascript/1-let-and-const.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/10-days-of-javascript/1-let-and-const.js -------------------------------------------------------------------------------- /hackerrank/2d_array_ds.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/2d_array_ds.go -------------------------------------------------------------------------------- /hackerrank/balanced_brackets.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/balanced_brackets.go -------------------------------------------------------------------------------- /hackerrank/binary_tree_level_average.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/binary_tree_level_average.rb -------------------------------------------------------------------------------- /hackerrank/count_triplets.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/count_triplets.go -------------------------------------------------------------------------------- /hackerrank/cracking-the-coding-interview/arrays-left-rotation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/cracking-the-coding-interview/arrays-left-rotation.js -------------------------------------------------------------------------------- /hackerrank/cracking-the-coding-interview/dp-coin-change.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/cracking-the-coding-interview/dp-coin-change.js -------------------------------------------------------------------------------- /hackerrank/equalizing_array_elements.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/equalizing_array_elements.rb -------------------------------------------------------------------------------- /hackerrank/find_substring_most_vowels.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/find_substring_most_vowels.rb -------------------------------------------------------------------------------- /hackerrank/left-rotation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/left-rotation.js -------------------------------------------------------------------------------- /hackerrank/logic_expression_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/logic_expression_spec.rb -------------------------------------------------------------------------------- /hackerrank/make_anagram_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/make_anagram_test.go -------------------------------------------------------------------------------- /hackerrank/mini-max-sum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/mini-max-sum.js -------------------------------------------------------------------------------- /hackerrank/minimum_swaps2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/minimum_swaps2.go -------------------------------------------------------------------------------- /hackerrank/new_year_chaos.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/new_year_chaos.go -------------------------------------------------------------------------------- /hackerrank/practice.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/practice.sql -------------------------------------------------------------------------------- /hackerrank/ransom_note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/ransom_note.go -------------------------------------------------------------------------------- /hackerrank/sherlock_and_anagrams.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/sherlock_and_anagrams.go -------------------------------------------------------------------------------- /hackerrank/sherlock_and_the_valid_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/sherlock_and_the_valid_string.go -------------------------------------------------------------------------------- /hackerrank/two_strings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/hackerrank/two_strings.go -------------------------------------------------------------------------------- /leetcode/calculate_time.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/calculate_time.rb -------------------------------------------------------------------------------- /leetcode/critical_connections_in_a_network_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/critical_connections_in_a_network_spec.rb -------------------------------------------------------------------------------- /leetcode/cut_off_trees_for_golf_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/cut_off_trees_for_golf_spec.rb -------------------------------------------------------------------------------- /leetcode/cut_off_trees_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/cut_off_trees_spec.rb -------------------------------------------------------------------------------- /leetcode/easy/best_time_buy_sell_stock2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/best_time_buy_sell_stock2.js -------------------------------------------------------------------------------- /leetcode/easy/contains_duplicate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/contains_duplicate.js -------------------------------------------------------------------------------- /leetcode/easy/intersection_of_2_arrays_ii.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/intersection_of_2_arrays_ii.js -------------------------------------------------------------------------------- /leetcode/easy/maximum_depth_binary_tree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/maximum_depth_binary_tree.js -------------------------------------------------------------------------------- /leetcode/easy/nearest_point_same_x_or_y_coordinate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/nearest_point_same_x_or_y_coordinate.js -------------------------------------------------------------------------------- /leetcode/easy/remove_duplicates_from_sorted_array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/remove_duplicates_from_sorted_array.js -------------------------------------------------------------------------------- /leetcode/easy/reverse_linked_list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/reverse_linked_list.js -------------------------------------------------------------------------------- /leetcode/easy/reverse_string.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/reverse_string.js -------------------------------------------------------------------------------- /leetcode/easy/single_number.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/single_number.js -------------------------------------------------------------------------------- /leetcode/easy/valid_anagram.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/valid_anagram.js -------------------------------------------------------------------------------- /leetcode/easy/valid_anagram.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/valid_anagram.rb -------------------------------------------------------------------------------- /leetcode/easy/valid_palindrome.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/valid_palindrome.js -------------------------------------------------------------------------------- /leetcode/easy/valid_parentheses.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/easy/valid_parentheses.js -------------------------------------------------------------------------------- /leetcode/expressive_words.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/expressive_words.rb -------------------------------------------------------------------------------- /leetcode/find_words_that_can_be_formed_by_characters_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/find_words_that_can_be_formed_by_characters_spec.rb -------------------------------------------------------------------------------- /leetcode/greatest_common_divisor_strings.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/greatest_common_divisor_strings.test.js -------------------------------------------------------------------------------- /leetcode/happy_number_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/happy_number_spec.rb -------------------------------------------------------------------------------- /leetcode/k_closest_points_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/k_closest_points_spec.rb -------------------------------------------------------------------------------- /leetcode/longest_increasing_path_in_a_matrix.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/longest_increasing_path_in_a_matrix.rb -------------------------------------------------------------------------------- /leetcode/longest_palindrome_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/longest_palindrome_spec.rb -------------------------------------------------------------------------------- /leetcode/maximal_square_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/maximal_square_spec.rb -------------------------------------------------------------------------------- /leetcode/medium/reverse_integer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/medium/reverse_integer.js -------------------------------------------------------------------------------- /leetcode/medium/rotate_array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/medium/rotate_array.js -------------------------------------------------------------------------------- /leetcode/most_common_word.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/most_common_word.rb -------------------------------------------------------------------------------- /leetcode/moving_average_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/moving_average_spec.rb -------------------------------------------------------------------------------- /leetcode/number_of_dice_rolls_with_target_sum_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/number_of_dice_rolls_with_target_sum_spec.rb -------------------------------------------------------------------------------- /leetcode/number_of_equivalent_domino_pairs_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/number_of_equivalent_domino_pairs_spec.rb -------------------------------------------------------------------------------- /leetcode/prison_cells_after_n_days_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/prison_cells_after_n_days_spec.rb -------------------------------------------------------------------------------- /leetcode/product_of_array_except_self_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/product_of_array_except_self_spec.rb -------------------------------------------------------------------------------- /leetcode/relative_sort_array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/relative_sort_array.rb -------------------------------------------------------------------------------- /leetcode/reverse_string_ii_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/reverse_string_ii_spec.rb -------------------------------------------------------------------------------- /leetcode/robot_return_to_origin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/robot_return_to_origin.rb -------------------------------------------------------------------------------- /leetcode/rotting_oranges_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/rotting_oranges_spec.rb -------------------------------------------------------------------------------- /leetcode/search_in_rotated_sorted_array_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/search_in_rotated_sorted_array_spec.rb -------------------------------------------------------------------------------- /leetcode/spiral_matrix_ii_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/spiral_matrix_ii_spec.rb -------------------------------------------------------------------------------- /leetcode/string_transforms_into_another_string_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/string_transforms_into_another_string_spec.rb -------------------------------------------------------------------------------- /leetcode/subsequences_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/subsequences_spec.rb -------------------------------------------------------------------------------- /leetcode/sudoku.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/sudoku.rb -------------------------------------------------------------------------------- /leetcode/two_sum_iv_bst_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/two_sum_iv_bst_spec.rb -------------------------------------------------------------------------------- /leetcode/two_sum_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/leetcode/two_sum_spec.rb -------------------------------------------------------------------------------- /neetcode/001_contains_duplicate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/001_contains_duplicate.py -------------------------------------------------------------------------------- /neetcode/001_contains_duplicate_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/001_contains_duplicate_spec.rb -------------------------------------------------------------------------------- /neetcode/002_valid_anagram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/002_valid_anagram.py -------------------------------------------------------------------------------- /neetcode/002_valid_anagram_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/002_valid_anagram_spec.rb -------------------------------------------------------------------------------- /neetcode/003_two_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/003_two_sum.py -------------------------------------------------------------------------------- /neetcode/003_two_sum_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/003_two_sum_spec.rb -------------------------------------------------------------------------------- /neetcode/004_group_anagrams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/004_group_anagrams.py -------------------------------------------------------------------------------- /neetcode/004_group_anagrams_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/004_group_anagrams_spec.rb -------------------------------------------------------------------------------- /neetcode/005_top_k_frequent_elements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/005_top_k_frequent_elements.py -------------------------------------------------------------------------------- /neetcode/005_top_k_frequent_elements_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/005_top_k_frequent_elements_spec.rb -------------------------------------------------------------------------------- /neetcode/006_encode_and_decode_strings_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/006_encode_and_decode_strings_spec.rb -------------------------------------------------------------------------------- /neetcode/007_product_of_array_except_self.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/007_product_of_array_except_self.py -------------------------------------------------------------------------------- /neetcode/007_product_of_array_except_self_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/007_product_of_array_except_self_spec.rb -------------------------------------------------------------------------------- /neetcode/009_longest_consecutive_sequence_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/009_longest_consecutive_sequence_spec.rb -------------------------------------------------------------------------------- /neetcode/010_valid_palindrome_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/010_valid_palindrome_spec.rb -------------------------------------------------------------------------------- /neetcode/011_two_sum_ii.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/011_two_sum_ii.py -------------------------------------------------------------------------------- /neetcode/011_two_sum_ii_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/011_two_sum_ii_spec.rb -------------------------------------------------------------------------------- /neetcode/012_3Sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/012_3Sum.py -------------------------------------------------------------------------------- /neetcode/012_3Sum_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/012_3Sum_spec.rb -------------------------------------------------------------------------------- /neetcode/013_container_with_most_water.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/013_container_with_most_water.py -------------------------------------------------------------------------------- /neetcode/013_container_with_most_water_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/013_container_with_most_water_spec.rb -------------------------------------------------------------------------------- /neetcode/015_best_time_to_buy_stock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/015_best_time_to_buy_stock.py -------------------------------------------------------------------------------- /neetcode/015_best_time_to_buy_stock_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/015_best_time_to_buy_stock_spec.rb -------------------------------------------------------------------------------- /neetcode/016_longest_substring_without_repeating_characters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/016_longest_substring_without_repeating_characters.py -------------------------------------------------------------------------------- /neetcode/021_valid_parentheses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/021_valid_parentheses.py -------------------------------------------------------------------------------- /neetcode/021_valid_parentheses_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/021_valid_parentheses_spec.rb -------------------------------------------------------------------------------- /neetcode/022_min_stack_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/022_min_stack_spec.rb -------------------------------------------------------------------------------- /neetcode/027_binary_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/027_binary_search.py -------------------------------------------------------------------------------- /neetcode/027_binary_search_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/027_binary_search_spec.rb -------------------------------------------------------------------------------- /neetcode/032_time_based_key_value_store_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/032_time_based_key_value_store_spec.rb -------------------------------------------------------------------------------- /neetcode/056_merge_intervals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/056_merge_intervals.py -------------------------------------------------------------------------------- /neetcode/088_merge_sorted_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/088_merge_sorted_array.py -------------------------------------------------------------------------------- /neetcode/144_single_number_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/144_single_number_spec.rb -------------------------------------------------------------------------------- /neetcode/169_majority_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/169_majority_element.py -------------------------------------------------------------------------------- /neetcode/219_contains_duplicate_ii.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/219_contains_duplicate_ii.py -------------------------------------------------------------------------------- /neetcode/228_summary_ranges.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/228_summary_ranges.py -------------------------------------------------------------------------------- /neetcode/692_top_k_frequent_words.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/692_top_k_frequent_words.py -------------------------------------------------------------------------------- /neetcode/904_fruit_into_baskets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/904_fruit_into_baskets.py -------------------------------------------------------------------------------- /neetcode/in-memory-DB-TRANSACTIONS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/in-memory-DB-TRANSACTIONS.md -------------------------------------------------------------------------------- /neetcode/in-memory-key-value-DB.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/in-memory-key-value-DB.py -------------------------------------------------------------------------------- /neetcode/python_for_interviews/python-cheatsheet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/python_for_interviews/python-cheatsheet.pdf -------------------------------------------------------------------------------- /neetcode/python_for_interviews/python_cheat_sheet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/neetcode/python_for_interviews/python_cheat_sheet.py -------------------------------------------------------------------------------- /order_courses_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/order_courses_spec.rb -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/package.json -------------------------------------------------------------------------------- /permutation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayning0/ctci/HEAD/permutation.rb --------------------------------------------------------------------------------