├── README.md ├── parse_py.py └── solutions ├── 0_1_knapsack.py ├── 2_exists.py ├── 3_sum.py ├── add_operators_in_string.py ├── add_two_number_list.py ├── addingcredits.py ├── anagrams.py ├── anonymous_letter.py ├── approximate_sort.py ├── arbitrage.py ├── args.py ├── average_top_3_scores.py ├── bad_set_insert.py ├── balanced_binary_tree.py ├── basic_args.py ├── basic_args_calls.py ├── bentley_bsearch.py ├── biggest_product_n_1.py ├── biggest_product_n_1_math.py ├── bignumber_multiplication.py ├── binary_search_ai=i.py ├── binary_search_circular_array.py ├── binary_search_first_k.py ├── binary_search_unknown_length.py ├── binary_tree_level_order.py ├── binary_tree_lock.py ├── binary_tree_postorder_traversal_iterative.py ├── binary_tree_postorder_traversal_iterative_alternative.py ├── binary_tree_preorder_traversal_iterative.py ├── binary_tree_prototype.py ├── bintrees_example.py ├── bonus.py ├── bonus_improved.py ├── bst_lowest_common_ancestor.py ├── bst_prototype.py ├── bst_sorted_order.py ├── bst_to_sorted_doubly_list.py ├── build_bst_from_sorted_array.py ├── buy_and_sell_stock.py ├── buy_and_sell_stock_twice.py ├── can_string_be_palindrome_hash.py ├── checking_cycle.py ├── checking_cycle_alternative.py ├── circular_queue.py ├── clone_graph.py ├── closest_int_same_bits.py ├── closest_stars.py ├── closure.py ├── closure_works.py ├── coin_change.py ├── collatz.py ├── collatz_conjecture.py ├── combinations.py ├── completion_search.py ├── compute_random_permutation.py ├── computing_binomial_coefficients.py ├── connect_leaves_binary_tree.py ├── container_with_most_water.py ├── convert_base.py ├── copying_postings_list.py ├── count_bits.py ├── count_inversions.py ├── counter_example.py ├── cyclic_right_shift.py ├── default_args.py ├── default_values.py ├── delete_list.py ├── deletion_list.py ├── descendant_and_ancestor.py ├── division.py ├── drawing_skylines_alternative.py ├── dutch_national_flag.py ├── dutch_national_flag_slow_inplace.py ├── dutch_national_flag_two_passes.py ├── eliminate_duplicate.py ├── even_odd_array.py ├── even_odd_merge_linked_list.py ├── exception_handling.py ├── exterior_binary_tree.py ├── fibonacci.py ├── fibonacci_iterative.py ├── find_element_appears_once.py ├── find_k_largest_bst.py ├── find_kth_element_in_two_sorted_arrays.py ├── find_missing_and_duplicate_xor.py ├── finding_min_max.py ├── first_missing_positive.py ├── function_timer.py ├── function_timer_sugar.py ├── gassing_up.py ├── gcd1.py ├── gcd2.py ├── generate_parentheses.py ├── generating_a_b_sqrt2.py ├── generating_a_b_sqrt2_improved.py ├── gray_code.py ├── gray_code_backtrack.py ├── hash_dictionary.py ├── height_determination.py ├── huffman_encoding.py ├── inorder_traversal_with_parent.py ├── insert_interval.py ├── insert_list.py ├── insertion_deletion_bst.py ├── insertion_sort_list.py ├── interconverting_string_integer.py ├── intersect_rectangle.py ├── intersect_sorted_arrays1.py ├── intersect_sorted_arrays2.py ├── intersect_sorted_arrays3.py ├── is_binary_tree_a_bst.py ├── is_binary_tree_a_bst_bfs.py ├── is_palindromic.py ├── jump_game.py ├── justify_text.py ├── k_largest_elements_binary_heap.py ├── k_th_largest_element_large_n.py ├── k_th_node_binary_tree.py ├── kwargs.py ├── largest_rectangle_under_skyline.py ├── levenshtein_distance.py ├── line_most_points.py ├── linked_list_prototype.py ├── list_pivoting.py ├── lock_ordering_bug.py ├── lock_ordering_works.py ├── longest_contained_range.py ├── longest_increasing_subarray.py ├── longest_nondecreasing_subsequence_n2.py ├── longest_subarray_k_improved.py ├── longest_subarray_with_distinct_entries.py ├── longest_valid_parentheses.py ├── look_and_say.py ├── lowest_common_ancestor.py ├── lowest_common_ancestor_hash.py ├── lowest_common_ancestor_no_parent.py ├── lrucache.py ├── magic_maze_game.py ├── matrix_rotation_constant.py ├── matrix_rotation_naive.py ├── matrix_search.py ├── max_difference_k_pairs.py ├── max_submatrix_rectangle.py ├── max_submatrix_rectangle_improved.py ├── max_submatrix_square.py ├── max_sum_subarray.py ├── maximum_subarray_in_circular_array.py ├── maximum_subarray_in_circular_array_constant_space.py ├── maze_game.py ├── maze_game_main.py ├── merge_contacts.py ├── merge_sorted_arrays.py ├── merge_sorted_lists.py ├── merge_two_bsts.py ├── merge_two_sorted_arrays_in_place.py ├── minimum_distance_3_sorted_arrays.py ├── minimum_waiting_time.py ├── missing_element.py ├── multiply_shift_add.py ├── n_queens.py ├── nearest_repetition.py ├── next_permutation.py ├── no_exception_handling.py ├── nonconstructible_change.py ├── nonpythonic.py ├── nonuniform_random_number_generation.py ├── normalized_pathnames.py ├── number_steps.py ├── number_ways.py ├── odd_even.py ├── offline_sampling.py ├── online_median.py ├── online_sampling.py ├── order_statistic.py ├── overlapping_lists.py ├── overlapping_lists_no_cycle.py ├── painting_iterative.py ├── painting_recursive.py ├── palindrome_linked_list.py ├── palindrome_number.py ├── palindrome_partitioning.py ├── parity1.py ├── parity2.py ├── parity3.py ├── parity4.py ├── partition_array.py ├── pascal_triangle_1.py ├── path_sum_binary_tree.py ├── permutation_array1.py ├── permutation_array2.py ├── permutations.py ├── permutations_alternative.py ├── phone_mnemonic.py ├── picking_up_coins.py ├── plus_one.py ├── points_covering_intervals_sorting.py ├── populating_next_right_pointers.py ├── power_set.py ├── power_set_alternative.py ├── power_x_y.py ├── pretty_printing.py ├── prime_sieve.py ├── prime_sieve_basic.py ├── print_linked_list_reverse_order.py ├── pythonic.py ├── queue_from_stacks.py ├── queue_with_max.py ├── queue_with_max_alternative.py ├── queue_with_max_intro.py ├── rabin_karp.py ├── range_lookup_bst.py ├── rearrange.py ├── rebuild_bst_preorder.py ├── rebuild_bst_preorder_better.py ├── reconstruct_binary_tree_pre_in_orders.py ├── reconstruct_preorder_with_null.py ├── regular_expression.py ├── remove_duplicates_from_sorted_array.py ├── remove_duplicates_sorted_list.py ├── remove_kth_last_list.py ├── rendering_calendar.py ├── replace_and_remove.py ├── reservoir_sampling.py ├── reverse_bits.py ├── reverse_integer.py ├── reverse_linked_list_from_s_to_f.py ├── reverse_words.py ├── road_network.py ├── roman_to_integer.py ├── rook_attack.py ├── rotate_array.py ├── rotate_array_permutation.py ├── rpn.py ├── run_length_compression.py ├── rw.py ├── s1.py ├── s2.py ├── scoping.py ├── score_combination.py ├── search_a_pair_sorted_array.py ├── search_bst.py ├── search_bst_first_larger_k.py ├── search_frequent_items.py ├── search_list.py ├── search_majority.py ├── search_maze.py ├── search_postings_list_iterative.py ├── search_postings_list_recursive.py ├── semaphore.py ├── shortest_path_fewest_edges.py ├── shortest_unique_prefix.py ├── simple_generator.py ├── simple_iterator.py ├── simple_web_server.py ├── sliding_window.py ├── smallest_subarray_covering_set.py ├── smallest_subarray_covering_set_stream.py ├── snake_string.py ├── sort_k_increasing_decreasing_array.py ├── sort_list.py ├── sorted_list_to_bst.py ├── spiral_matrix.py ├── spiral_matrix_clockwise.py ├── spreadsheet_encoding.py ├── square_root.py ├── square_root_int.py ├── stack_queue_using_heap.py ├── stack_with_max.py ├── stack_with_max_improved.py ├── string_in_matrix.py ├── student_search.py ├── student_sort.py ├── subseq_cover.py ├── substring_with_concatenation_of_all_words.py ├── successor.py ├── sudoku_check.py ├── sudoku_solve.py ├── sum_root_to_leaf_binary_tree.py ├── surrounded_regions.py ├── swap_bits.py ├── symmetric_binary_tree.py ├── task_assignment.py ├── task_execution_web_server.py ├── team_photo_1.py ├── team_photo_2.py ├── team_reachability.py ├── thread_per_task_webserver.py ├── three_jugs.py ├── top_k.py ├── tower_hanoi.py ├── transform_string_to_other.py ├── trapping_rain_water.py ├── tree_diameter.py ├── tree_traversal.py ├── triangle.py ├── try_except.py ├── try_except_finally.py ├── try_finally.py ├── two_sum.py ├── two_thread_increment.py ├── uniform_random_number_generation.py ├── union_intervals.py ├── unique_binary_trees_all.py ├── valid_ip_address.py ├── valid_palindrome.py ├── valid_parentheses.py ├── view_from_above.py ├── view_sunset.py ├── wiring_circuit_board.py ├── word_breaking.py └── zipping_list.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/README.md -------------------------------------------------------------------------------- /parse_py.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/parse_py.py -------------------------------------------------------------------------------- /solutions/0_1_knapsack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/0_1_knapsack.py -------------------------------------------------------------------------------- /solutions/2_exists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/2_exists.py -------------------------------------------------------------------------------- /solutions/3_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/3_sum.py -------------------------------------------------------------------------------- /solutions/add_operators_in_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/add_operators_in_string.py -------------------------------------------------------------------------------- /solutions/add_two_number_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/add_two_number_list.py -------------------------------------------------------------------------------- /solutions/addingcredits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/addingcredits.py -------------------------------------------------------------------------------- /solutions/anagrams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/anagrams.py -------------------------------------------------------------------------------- /solutions/anonymous_letter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/anonymous_letter.py -------------------------------------------------------------------------------- /solutions/approximate_sort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/approximate_sort.py -------------------------------------------------------------------------------- /solutions/arbitrage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/arbitrage.py -------------------------------------------------------------------------------- /solutions/args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/args.py -------------------------------------------------------------------------------- /solutions/average_top_3_scores.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/average_top_3_scores.py -------------------------------------------------------------------------------- /solutions/bad_set_insert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bad_set_insert.py -------------------------------------------------------------------------------- /solutions/balanced_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/balanced_binary_tree.py -------------------------------------------------------------------------------- /solutions/basic_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/basic_args.py -------------------------------------------------------------------------------- /solutions/basic_args_calls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/basic_args_calls.py -------------------------------------------------------------------------------- /solutions/bentley_bsearch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bentley_bsearch.py -------------------------------------------------------------------------------- /solutions/biggest_product_n_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/biggest_product_n_1.py -------------------------------------------------------------------------------- /solutions/biggest_product_n_1_math.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/biggest_product_n_1_math.py -------------------------------------------------------------------------------- /solutions/bignumber_multiplication.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bignumber_multiplication.py -------------------------------------------------------------------------------- /solutions/binary_search_ai=i.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_search_ai=i.py -------------------------------------------------------------------------------- /solutions/binary_search_circular_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_search_circular_array.py -------------------------------------------------------------------------------- /solutions/binary_search_first_k.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_search_first_k.py -------------------------------------------------------------------------------- /solutions/binary_search_unknown_length.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_search_unknown_length.py -------------------------------------------------------------------------------- /solutions/binary_tree_level_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_tree_level_order.py -------------------------------------------------------------------------------- /solutions/binary_tree_lock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_tree_lock.py -------------------------------------------------------------------------------- /solutions/binary_tree_postorder_traversal_iterative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_tree_postorder_traversal_iterative.py -------------------------------------------------------------------------------- /solutions/binary_tree_postorder_traversal_iterative_alternative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_tree_postorder_traversal_iterative_alternative.py -------------------------------------------------------------------------------- /solutions/binary_tree_preorder_traversal_iterative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_tree_preorder_traversal_iterative.py -------------------------------------------------------------------------------- /solutions/binary_tree_prototype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/binary_tree_prototype.py -------------------------------------------------------------------------------- /solutions/bintrees_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bintrees_example.py -------------------------------------------------------------------------------- /solutions/bonus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bonus.py -------------------------------------------------------------------------------- /solutions/bonus_improved.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bonus_improved.py -------------------------------------------------------------------------------- /solutions/bst_lowest_common_ancestor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bst_lowest_common_ancestor.py -------------------------------------------------------------------------------- /solutions/bst_prototype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bst_prototype.py -------------------------------------------------------------------------------- /solutions/bst_sorted_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bst_sorted_order.py -------------------------------------------------------------------------------- /solutions/bst_to_sorted_doubly_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/bst_to_sorted_doubly_list.py -------------------------------------------------------------------------------- /solutions/build_bst_from_sorted_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/build_bst_from_sorted_array.py -------------------------------------------------------------------------------- /solutions/buy_and_sell_stock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/buy_and_sell_stock.py -------------------------------------------------------------------------------- /solutions/buy_and_sell_stock_twice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/buy_and_sell_stock_twice.py -------------------------------------------------------------------------------- /solutions/can_string_be_palindrome_hash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/can_string_be_palindrome_hash.py -------------------------------------------------------------------------------- /solutions/checking_cycle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/checking_cycle.py -------------------------------------------------------------------------------- /solutions/checking_cycle_alternative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/checking_cycle_alternative.py -------------------------------------------------------------------------------- /solutions/circular_queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/circular_queue.py -------------------------------------------------------------------------------- /solutions/clone_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/clone_graph.py -------------------------------------------------------------------------------- /solutions/closest_int_same_bits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/closest_int_same_bits.py -------------------------------------------------------------------------------- /solutions/closest_stars.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/closest_stars.py -------------------------------------------------------------------------------- /solutions/closure.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/closure.py -------------------------------------------------------------------------------- /solutions/closure_works.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/closure_works.py -------------------------------------------------------------------------------- /solutions/coin_change.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/coin_change.py -------------------------------------------------------------------------------- /solutions/collatz.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/collatz.py -------------------------------------------------------------------------------- /solutions/collatz_conjecture.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/collatz_conjecture.py -------------------------------------------------------------------------------- /solutions/combinations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/combinations.py -------------------------------------------------------------------------------- /solutions/completion_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/completion_search.py -------------------------------------------------------------------------------- /solutions/compute_random_permutation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/compute_random_permutation.py -------------------------------------------------------------------------------- /solutions/computing_binomial_coefficients.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/computing_binomial_coefficients.py -------------------------------------------------------------------------------- /solutions/connect_leaves_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/connect_leaves_binary_tree.py -------------------------------------------------------------------------------- /solutions/container_with_most_water.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/container_with_most_water.py -------------------------------------------------------------------------------- /solutions/convert_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/convert_base.py -------------------------------------------------------------------------------- /solutions/copying_postings_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/copying_postings_list.py -------------------------------------------------------------------------------- /solutions/count_bits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/count_bits.py -------------------------------------------------------------------------------- /solutions/count_inversions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/count_inversions.py -------------------------------------------------------------------------------- /solutions/counter_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/counter_example.py -------------------------------------------------------------------------------- /solutions/cyclic_right_shift.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/cyclic_right_shift.py -------------------------------------------------------------------------------- /solutions/default_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/default_args.py -------------------------------------------------------------------------------- /solutions/default_values.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/default_values.py -------------------------------------------------------------------------------- /solutions/delete_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/delete_list.py -------------------------------------------------------------------------------- /solutions/deletion_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/deletion_list.py -------------------------------------------------------------------------------- /solutions/descendant_and_ancestor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/descendant_and_ancestor.py -------------------------------------------------------------------------------- /solutions/division.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/division.py -------------------------------------------------------------------------------- /solutions/drawing_skylines_alternative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/drawing_skylines_alternative.py -------------------------------------------------------------------------------- /solutions/dutch_national_flag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/dutch_national_flag.py -------------------------------------------------------------------------------- /solutions/dutch_national_flag_slow_inplace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/dutch_national_flag_slow_inplace.py -------------------------------------------------------------------------------- /solutions/dutch_national_flag_two_passes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/dutch_national_flag_two_passes.py -------------------------------------------------------------------------------- /solutions/eliminate_duplicate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/eliminate_duplicate.py -------------------------------------------------------------------------------- /solutions/even_odd_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/even_odd_array.py -------------------------------------------------------------------------------- /solutions/even_odd_merge_linked_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/even_odd_merge_linked_list.py -------------------------------------------------------------------------------- /solutions/exception_handling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/exception_handling.py -------------------------------------------------------------------------------- /solutions/exterior_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/exterior_binary_tree.py -------------------------------------------------------------------------------- /solutions/fibonacci.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/fibonacci.py -------------------------------------------------------------------------------- /solutions/fibonacci_iterative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/fibonacci_iterative.py -------------------------------------------------------------------------------- /solutions/find_element_appears_once.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/find_element_appears_once.py -------------------------------------------------------------------------------- /solutions/find_k_largest_bst.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/find_k_largest_bst.py -------------------------------------------------------------------------------- /solutions/find_kth_element_in_two_sorted_arrays.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/find_kth_element_in_two_sorted_arrays.py -------------------------------------------------------------------------------- /solutions/find_missing_and_duplicate_xor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/find_missing_and_duplicate_xor.py -------------------------------------------------------------------------------- /solutions/finding_min_max.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/finding_min_max.py -------------------------------------------------------------------------------- /solutions/first_missing_positive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/first_missing_positive.py -------------------------------------------------------------------------------- /solutions/function_timer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/function_timer.py -------------------------------------------------------------------------------- /solutions/function_timer_sugar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/function_timer_sugar.py -------------------------------------------------------------------------------- /solutions/gassing_up.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/gassing_up.py -------------------------------------------------------------------------------- /solutions/gcd1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/gcd1.py -------------------------------------------------------------------------------- /solutions/gcd2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/gcd2.py -------------------------------------------------------------------------------- /solutions/generate_parentheses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/generate_parentheses.py -------------------------------------------------------------------------------- /solutions/generating_a_b_sqrt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/generating_a_b_sqrt2.py -------------------------------------------------------------------------------- /solutions/generating_a_b_sqrt2_improved.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/generating_a_b_sqrt2_improved.py -------------------------------------------------------------------------------- /solutions/gray_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/gray_code.py -------------------------------------------------------------------------------- /solutions/gray_code_backtrack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/gray_code_backtrack.py -------------------------------------------------------------------------------- /solutions/hash_dictionary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/hash_dictionary.py -------------------------------------------------------------------------------- /solutions/height_determination.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/height_determination.py -------------------------------------------------------------------------------- /solutions/huffman_encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/huffman_encoding.py -------------------------------------------------------------------------------- /solutions/inorder_traversal_with_parent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/inorder_traversal_with_parent.py -------------------------------------------------------------------------------- /solutions/insert_interval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/insert_interval.py -------------------------------------------------------------------------------- /solutions/insert_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/insert_list.py -------------------------------------------------------------------------------- /solutions/insertion_deletion_bst.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/insertion_deletion_bst.py -------------------------------------------------------------------------------- /solutions/insertion_sort_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/insertion_sort_list.py -------------------------------------------------------------------------------- /solutions/interconverting_string_integer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/interconverting_string_integer.py -------------------------------------------------------------------------------- /solutions/intersect_rectangle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/intersect_rectangle.py -------------------------------------------------------------------------------- /solutions/intersect_sorted_arrays1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/intersect_sorted_arrays1.py -------------------------------------------------------------------------------- /solutions/intersect_sorted_arrays2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/intersect_sorted_arrays2.py -------------------------------------------------------------------------------- /solutions/intersect_sorted_arrays3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/intersect_sorted_arrays3.py -------------------------------------------------------------------------------- /solutions/is_binary_tree_a_bst.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/is_binary_tree_a_bst.py -------------------------------------------------------------------------------- /solutions/is_binary_tree_a_bst_bfs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/is_binary_tree_a_bst_bfs.py -------------------------------------------------------------------------------- /solutions/is_palindromic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/is_palindromic.py -------------------------------------------------------------------------------- /solutions/jump_game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/jump_game.py -------------------------------------------------------------------------------- /solutions/justify_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/justify_text.py -------------------------------------------------------------------------------- /solutions/k_largest_elements_binary_heap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/k_largest_elements_binary_heap.py -------------------------------------------------------------------------------- /solutions/k_th_largest_element_large_n.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/k_th_largest_element_large_n.py -------------------------------------------------------------------------------- /solutions/k_th_node_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/k_th_node_binary_tree.py -------------------------------------------------------------------------------- /solutions/kwargs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/kwargs.py -------------------------------------------------------------------------------- /solutions/largest_rectangle_under_skyline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/largest_rectangle_under_skyline.py -------------------------------------------------------------------------------- /solutions/levenshtein_distance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/levenshtein_distance.py -------------------------------------------------------------------------------- /solutions/line_most_points.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/line_most_points.py -------------------------------------------------------------------------------- /solutions/linked_list_prototype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/linked_list_prototype.py -------------------------------------------------------------------------------- /solutions/list_pivoting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/list_pivoting.py -------------------------------------------------------------------------------- /solutions/lock_ordering_bug.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/lock_ordering_bug.py -------------------------------------------------------------------------------- /solutions/lock_ordering_works.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/lock_ordering_works.py -------------------------------------------------------------------------------- /solutions/longest_contained_range.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/longest_contained_range.py -------------------------------------------------------------------------------- /solutions/longest_increasing_subarray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/longest_increasing_subarray.py -------------------------------------------------------------------------------- /solutions/longest_nondecreasing_subsequence_n2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/longest_nondecreasing_subsequence_n2.py -------------------------------------------------------------------------------- /solutions/longest_subarray_k_improved.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/longest_subarray_k_improved.py -------------------------------------------------------------------------------- /solutions/longest_subarray_with_distinct_entries.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/longest_subarray_with_distinct_entries.py -------------------------------------------------------------------------------- /solutions/longest_valid_parentheses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/longest_valid_parentheses.py -------------------------------------------------------------------------------- /solutions/look_and_say.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/look_and_say.py -------------------------------------------------------------------------------- /solutions/lowest_common_ancestor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/lowest_common_ancestor.py -------------------------------------------------------------------------------- /solutions/lowest_common_ancestor_hash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/lowest_common_ancestor_hash.py -------------------------------------------------------------------------------- /solutions/lowest_common_ancestor_no_parent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/lowest_common_ancestor_no_parent.py -------------------------------------------------------------------------------- /solutions/lrucache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/lrucache.py -------------------------------------------------------------------------------- /solutions/magic_maze_game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/magic_maze_game.py -------------------------------------------------------------------------------- /solutions/matrix_rotation_constant.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/matrix_rotation_constant.py -------------------------------------------------------------------------------- /solutions/matrix_rotation_naive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/matrix_rotation_naive.py -------------------------------------------------------------------------------- /solutions/matrix_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/matrix_search.py -------------------------------------------------------------------------------- /solutions/max_difference_k_pairs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/max_difference_k_pairs.py -------------------------------------------------------------------------------- /solutions/max_submatrix_rectangle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/max_submatrix_rectangle.py -------------------------------------------------------------------------------- /solutions/max_submatrix_rectangle_improved.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/max_submatrix_rectangle_improved.py -------------------------------------------------------------------------------- /solutions/max_submatrix_square.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/max_submatrix_square.py -------------------------------------------------------------------------------- /solutions/max_sum_subarray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/max_sum_subarray.py -------------------------------------------------------------------------------- /solutions/maximum_subarray_in_circular_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/maximum_subarray_in_circular_array.py -------------------------------------------------------------------------------- /solutions/maximum_subarray_in_circular_array_constant_space.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/maximum_subarray_in_circular_array_constant_space.py -------------------------------------------------------------------------------- /solutions/maze_game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/maze_game.py -------------------------------------------------------------------------------- /solutions/maze_game_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/maze_game_main.py -------------------------------------------------------------------------------- /solutions/merge_contacts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/merge_contacts.py -------------------------------------------------------------------------------- /solutions/merge_sorted_arrays.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/merge_sorted_arrays.py -------------------------------------------------------------------------------- /solutions/merge_sorted_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/merge_sorted_lists.py -------------------------------------------------------------------------------- /solutions/merge_two_bsts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/merge_two_bsts.py -------------------------------------------------------------------------------- /solutions/merge_two_sorted_arrays_in_place.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/merge_two_sorted_arrays_in_place.py -------------------------------------------------------------------------------- /solutions/minimum_distance_3_sorted_arrays.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/minimum_distance_3_sorted_arrays.py -------------------------------------------------------------------------------- /solutions/minimum_waiting_time.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/minimum_waiting_time.py -------------------------------------------------------------------------------- /solutions/missing_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/missing_element.py -------------------------------------------------------------------------------- /solutions/multiply_shift_add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/multiply_shift_add.py -------------------------------------------------------------------------------- /solutions/n_queens.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/n_queens.py -------------------------------------------------------------------------------- /solutions/nearest_repetition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/nearest_repetition.py -------------------------------------------------------------------------------- /solutions/next_permutation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/next_permutation.py -------------------------------------------------------------------------------- /solutions/no_exception_handling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/no_exception_handling.py -------------------------------------------------------------------------------- /solutions/nonconstructible_change.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/nonconstructible_change.py -------------------------------------------------------------------------------- /solutions/nonpythonic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/nonpythonic.py -------------------------------------------------------------------------------- /solutions/nonuniform_random_number_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/nonuniform_random_number_generation.py -------------------------------------------------------------------------------- /solutions/normalized_pathnames.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/normalized_pathnames.py -------------------------------------------------------------------------------- /solutions/number_steps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/number_steps.py -------------------------------------------------------------------------------- /solutions/number_ways.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/number_ways.py -------------------------------------------------------------------------------- /solutions/odd_even.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/odd_even.py -------------------------------------------------------------------------------- /solutions/offline_sampling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/offline_sampling.py -------------------------------------------------------------------------------- /solutions/online_median.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/online_median.py -------------------------------------------------------------------------------- /solutions/online_sampling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/online_sampling.py -------------------------------------------------------------------------------- /solutions/order_statistic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/order_statistic.py -------------------------------------------------------------------------------- /solutions/overlapping_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/overlapping_lists.py -------------------------------------------------------------------------------- /solutions/overlapping_lists_no_cycle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/overlapping_lists_no_cycle.py -------------------------------------------------------------------------------- /solutions/painting_iterative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/painting_iterative.py -------------------------------------------------------------------------------- /solutions/painting_recursive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/painting_recursive.py -------------------------------------------------------------------------------- /solutions/palindrome_linked_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/palindrome_linked_list.py -------------------------------------------------------------------------------- /solutions/palindrome_number.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/palindrome_number.py -------------------------------------------------------------------------------- /solutions/palindrome_partitioning.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/palindrome_partitioning.py -------------------------------------------------------------------------------- /solutions/parity1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/parity1.py -------------------------------------------------------------------------------- /solutions/parity2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/parity2.py -------------------------------------------------------------------------------- /solutions/parity3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/parity3.py -------------------------------------------------------------------------------- /solutions/parity4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/parity4.py -------------------------------------------------------------------------------- /solutions/partition_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/partition_array.py -------------------------------------------------------------------------------- /solutions/pascal_triangle_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/pascal_triangle_1.py -------------------------------------------------------------------------------- /solutions/path_sum_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/path_sum_binary_tree.py -------------------------------------------------------------------------------- /solutions/permutation_array1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/permutation_array1.py -------------------------------------------------------------------------------- /solutions/permutation_array2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/permutation_array2.py -------------------------------------------------------------------------------- /solutions/permutations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/permutations.py -------------------------------------------------------------------------------- /solutions/permutations_alternative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/permutations_alternative.py -------------------------------------------------------------------------------- /solutions/phone_mnemonic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/phone_mnemonic.py -------------------------------------------------------------------------------- /solutions/picking_up_coins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/picking_up_coins.py -------------------------------------------------------------------------------- /solutions/plus_one.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/plus_one.py -------------------------------------------------------------------------------- /solutions/points_covering_intervals_sorting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/points_covering_intervals_sorting.py -------------------------------------------------------------------------------- /solutions/populating_next_right_pointers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/populating_next_right_pointers.py -------------------------------------------------------------------------------- /solutions/power_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/power_set.py -------------------------------------------------------------------------------- /solutions/power_set_alternative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/power_set_alternative.py -------------------------------------------------------------------------------- /solutions/power_x_y.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/power_x_y.py -------------------------------------------------------------------------------- /solutions/pretty_printing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/pretty_printing.py -------------------------------------------------------------------------------- /solutions/prime_sieve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/prime_sieve.py -------------------------------------------------------------------------------- /solutions/prime_sieve_basic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/prime_sieve_basic.py -------------------------------------------------------------------------------- /solutions/print_linked_list_reverse_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/print_linked_list_reverse_order.py -------------------------------------------------------------------------------- /solutions/pythonic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/pythonic.py -------------------------------------------------------------------------------- /solutions/queue_from_stacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/queue_from_stacks.py -------------------------------------------------------------------------------- /solutions/queue_with_max.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/queue_with_max.py -------------------------------------------------------------------------------- /solutions/queue_with_max_alternative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/queue_with_max_alternative.py -------------------------------------------------------------------------------- /solutions/queue_with_max_intro.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/queue_with_max_intro.py -------------------------------------------------------------------------------- /solutions/rabin_karp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rabin_karp.py -------------------------------------------------------------------------------- /solutions/range_lookup_bst.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/range_lookup_bst.py -------------------------------------------------------------------------------- /solutions/rearrange.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rearrange.py -------------------------------------------------------------------------------- /solutions/rebuild_bst_preorder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rebuild_bst_preorder.py -------------------------------------------------------------------------------- /solutions/rebuild_bst_preorder_better.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rebuild_bst_preorder_better.py -------------------------------------------------------------------------------- /solutions/reconstruct_binary_tree_pre_in_orders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/reconstruct_binary_tree_pre_in_orders.py -------------------------------------------------------------------------------- /solutions/reconstruct_preorder_with_null.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/reconstruct_preorder_with_null.py -------------------------------------------------------------------------------- /solutions/regular_expression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/regular_expression.py -------------------------------------------------------------------------------- /solutions/remove_duplicates_from_sorted_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/remove_duplicates_from_sorted_array.py -------------------------------------------------------------------------------- /solutions/remove_duplicates_sorted_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/remove_duplicates_sorted_list.py -------------------------------------------------------------------------------- /solutions/remove_kth_last_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/remove_kth_last_list.py -------------------------------------------------------------------------------- /solutions/rendering_calendar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rendering_calendar.py -------------------------------------------------------------------------------- /solutions/replace_and_remove.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/replace_and_remove.py -------------------------------------------------------------------------------- /solutions/reservoir_sampling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/reservoir_sampling.py -------------------------------------------------------------------------------- /solutions/reverse_bits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/reverse_bits.py -------------------------------------------------------------------------------- /solutions/reverse_integer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/reverse_integer.py -------------------------------------------------------------------------------- /solutions/reverse_linked_list_from_s_to_f.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/reverse_linked_list_from_s_to_f.py -------------------------------------------------------------------------------- /solutions/reverse_words.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/reverse_words.py -------------------------------------------------------------------------------- /solutions/road_network.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/road_network.py -------------------------------------------------------------------------------- /solutions/roman_to_integer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/roman_to_integer.py -------------------------------------------------------------------------------- /solutions/rook_attack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rook_attack.py -------------------------------------------------------------------------------- /solutions/rotate_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rotate_array.py -------------------------------------------------------------------------------- /solutions/rotate_array_permutation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rotate_array_permutation.py -------------------------------------------------------------------------------- /solutions/rpn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rpn.py -------------------------------------------------------------------------------- /solutions/run_length_compression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/run_length_compression.py -------------------------------------------------------------------------------- /solutions/rw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/rw.py -------------------------------------------------------------------------------- /solutions/s1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/s1.py -------------------------------------------------------------------------------- /solutions/s2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/s2.py -------------------------------------------------------------------------------- /solutions/scoping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/scoping.py -------------------------------------------------------------------------------- /solutions/score_combination.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/score_combination.py -------------------------------------------------------------------------------- /solutions/search_a_pair_sorted_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/search_a_pair_sorted_array.py -------------------------------------------------------------------------------- /solutions/search_bst.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/search_bst.py -------------------------------------------------------------------------------- /solutions/search_bst_first_larger_k.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/search_bst_first_larger_k.py -------------------------------------------------------------------------------- /solutions/search_frequent_items.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/search_frequent_items.py -------------------------------------------------------------------------------- /solutions/search_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/search_list.py -------------------------------------------------------------------------------- /solutions/search_majority.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/search_majority.py -------------------------------------------------------------------------------- /solutions/search_maze.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/search_maze.py -------------------------------------------------------------------------------- /solutions/search_postings_list_iterative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/search_postings_list_iterative.py -------------------------------------------------------------------------------- /solutions/search_postings_list_recursive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/search_postings_list_recursive.py -------------------------------------------------------------------------------- /solutions/semaphore.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/semaphore.py -------------------------------------------------------------------------------- /solutions/shortest_path_fewest_edges.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/shortest_path_fewest_edges.py -------------------------------------------------------------------------------- /solutions/shortest_unique_prefix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/shortest_unique_prefix.py -------------------------------------------------------------------------------- /solutions/simple_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/simple_generator.py -------------------------------------------------------------------------------- /solutions/simple_iterator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/simple_iterator.py -------------------------------------------------------------------------------- /solutions/simple_web_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/simple_web_server.py -------------------------------------------------------------------------------- /solutions/sliding_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/sliding_window.py -------------------------------------------------------------------------------- /solutions/smallest_subarray_covering_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/smallest_subarray_covering_set.py -------------------------------------------------------------------------------- /solutions/smallest_subarray_covering_set_stream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/smallest_subarray_covering_set_stream.py -------------------------------------------------------------------------------- /solutions/snake_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/snake_string.py -------------------------------------------------------------------------------- /solutions/sort_k_increasing_decreasing_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/sort_k_increasing_decreasing_array.py -------------------------------------------------------------------------------- /solutions/sort_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/sort_list.py -------------------------------------------------------------------------------- /solutions/sorted_list_to_bst.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/sorted_list_to_bst.py -------------------------------------------------------------------------------- /solutions/spiral_matrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/spiral_matrix.py -------------------------------------------------------------------------------- /solutions/spiral_matrix_clockwise.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/spiral_matrix_clockwise.py -------------------------------------------------------------------------------- /solutions/spreadsheet_encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/spreadsheet_encoding.py -------------------------------------------------------------------------------- /solutions/square_root.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/square_root.py -------------------------------------------------------------------------------- /solutions/square_root_int.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/square_root_int.py -------------------------------------------------------------------------------- /solutions/stack_queue_using_heap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/stack_queue_using_heap.py -------------------------------------------------------------------------------- /solutions/stack_with_max.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/stack_with_max.py -------------------------------------------------------------------------------- /solutions/stack_with_max_improved.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/stack_with_max_improved.py -------------------------------------------------------------------------------- /solutions/string_in_matrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/string_in_matrix.py -------------------------------------------------------------------------------- /solutions/student_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/student_search.py -------------------------------------------------------------------------------- /solutions/student_sort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/student_sort.py -------------------------------------------------------------------------------- /solutions/subseq_cover.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/subseq_cover.py -------------------------------------------------------------------------------- /solutions/substring_with_concatenation_of_all_words.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/substring_with_concatenation_of_all_words.py -------------------------------------------------------------------------------- /solutions/successor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/successor.py -------------------------------------------------------------------------------- /solutions/sudoku_check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/sudoku_check.py -------------------------------------------------------------------------------- /solutions/sudoku_solve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/sudoku_solve.py -------------------------------------------------------------------------------- /solutions/sum_root_to_leaf_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/sum_root_to_leaf_binary_tree.py -------------------------------------------------------------------------------- /solutions/surrounded_regions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/surrounded_regions.py -------------------------------------------------------------------------------- /solutions/swap_bits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/swap_bits.py -------------------------------------------------------------------------------- /solutions/symmetric_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/symmetric_binary_tree.py -------------------------------------------------------------------------------- /solutions/task_assignment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/task_assignment.py -------------------------------------------------------------------------------- /solutions/task_execution_web_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/task_execution_web_server.py -------------------------------------------------------------------------------- /solutions/team_photo_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/team_photo_1.py -------------------------------------------------------------------------------- /solutions/team_photo_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/team_photo_2.py -------------------------------------------------------------------------------- /solutions/team_reachability.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/team_reachability.py -------------------------------------------------------------------------------- /solutions/thread_per_task_webserver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/thread_per_task_webserver.py -------------------------------------------------------------------------------- /solutions/three_jugs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/three_jugs.py -------------------------------------------------------------------------------- /solutions/top_k.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/top_k.py -------------------------------------------------------------------------------- /solutions/tower_hanoi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/tower_hanoi.py -------------------------------------------------------------------------------- /solutions/transform_string_to_other.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/transform_string_to_other.py -------------------------------------------------------------------------------- /solutions/trapping_rain_water.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/trapping_rain_water.py -------------------------------------------------------------------------------- /solutions/tree_diameter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/tree_diameter.py -------------------------------------------------------------------------------- /solutions/tree_traversal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/tree_traversal.py -------------------------------------------------------------------------------- /solutions/triangle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/triangle.py -------------------------------------------------------------------------------- /solutions/try_except.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/try_except.py -------------------------------------------------------------------------------- /solutions/try_except_finally.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/try_except_finally.py -------------------------------------------------------------------------------- /solutions/try_finally.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/try_finally.py -------------------------------------------------------------------------------- /solutions/two_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/two_sum.py -------------------------------------------------------------------------------- /solutions/two_thread_increment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/two_thread_increment.py -------------------------------------------------------------------------------- /solutions/uniform_random_number_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/uniform_random_number_generation.py -------------------------------------------------------------------------------- /solutions/union_intervals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/union_intervals.py -------------------------------------------------------------------------------- /solutions/unique_binary_trees_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/unique_binary_trees_all.py -------------------------------------------------------------------------------- /solutions/valid_ip_address.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/valid_ip_address.py -------------------------------------------------------------------------------- /solutions/valid_palindrome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/valid_palindrome.py -------------------------------------------------------------------------------- /solutions/valid_parentheses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/valid_parentheses.py -------------------------------------------------------------------------------- /solutions/view_from_above.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/view_from_above.py -------------------------------------------------------------------------------- /solutions/view_sunset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/view_sunset.py -------------------------------------------------------------------------------- /solutions/wiring_circuit_board.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/wiring_circuit_board.py -------------------------------------------------------------------------------- /solutions/word_breaking.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/word_breaking.py -------------------------------------------------------------------------------- /solutions/zipping_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coldmanck/EPI-Python-Solution/HEAD/solutions/zipping_list.py --------------------------------------------------------------------------------