Solving algorithmic problems on leetcode.com
- 1. Two Sum >>> two_sum.exs
- 9. Palindrome Number >>> palindrome_number.exs
- 11. Container With Most Water >>> container_with_most_water.exs
- 14. Longest Common Prefix >>> common_prefix.exs
- 15. 3Sum >>> three_sum.exs
- 18. 4Sum >>> four_sum.exs
- 20. Valid Parentheses >>> valid_parentheses.exs
- 38. Count and Say >>> count_and_say.exs
- 42. Trapping Rain Water >>> container_with_most_water.exs
- 43. Multiply Strings >>> multiply_strings.exs
- 49. Group Anagrams >>> valid_anagram.exs
- 55. Jump Game >>> jump_game.exs
- 56. Merge Intervals >>> merge_intervals.exs
- 69. Sqrt(x) >>> sqrt_x.exs
- 74. Search a 2D Matrix >>> binary_search.exs
- 121. Best Time to Buy and Sell Stock >>> best_time_to_buy_and_sell_stock.exs
- 122. Best Time to Buy and Sell Stock II >>> best_time_to_buy_and_sell_stock.exs
- 123. Best Time to Buy and Sell Stock III >>> best_time_to_buy_and_sell_stock.exs
- 128. Longest Consecutive Sequence >>> longest_consecutive_sequence.exs
- 136. Single Number >>> single_number.exs
- 137. Single Number II >>> single_number.exs
- 146. LRU Cache >>> lru_cache.exs
- 167. Two Sum II - Input Array Is Sorted >>> two_sum.exs
- 188. Best Time to Buy and Sell Stock IV >>> best_time_to_buy_and_sell_stock.exs
- 202. Happy Number >>> sum_of_digits.exs
- 204. Count Primes >>> count_primes.exs
- 217. Contains Duplicate >>> contains_duplicate.exs
- 219. Contains Duplicate II >>> contains_duplicate.exs
- 220. Contains Duplicate III >>> contains_duplicate.exs
- 239. Sliding Window Maximum >>> sliding_window_median.exs
- 242. Valid Anagram >>> valid_anagram.exs
- 258. Add Digits >>> alternating_digit_sum.exs
- 309. Best Time to Buy and Sell Stock with Cooldown >>> best_time_to_buy_and_sell_stock.exs
- 347. Top K Frequent Elements >>> top_k_frequent_words.exs
- 357. Count Numbers with Unique Digits >>> count_special_integers.exs
- 387. First Unique Character in a String >>> first_unique_character.exs
- 480. Sliding Window Median >>> sliding_window_median.exs
- 692. Top K Frequent Words >>> top_k_frequent_words.exs
- 704. Binary Search >>> binary_search.exs
- 714. Best Time to Buy and Sell Stock with Transaction Fee >>> best_time_to_buy_and_sell_stock.exs
- 870. Advantage Shuffle >>> advantage_shuffle.exs
- 949. Largest Time for Given Digits >>> largest_time_for_given_digits.exs
- 977. Squares of a Sorted Array >>> squares_sorted_array.exs
- 981. Time Based Key-Value Store >>> time_based_key_value_store.exs
- 982. Triples with Bitwise AND Equal To Zero >>> triples_with_bitwise.exs
- 983. Minimum Cost For Tickets >>> minimum_cost_for_tickets.exs
- 1046. Last Stone Weight >>> last_stone_weight.exs
- 1049. Last Stone Weight II >>> last_stone_weight.exs
- 1109. Corporate Flight Bookings >>> corporate_flight_bookings.exs
- 1189. Maximum Number of Balloons >>> maximum_number_of_balloons.exs
- 1192. Critical Connections in a Network >>> critical_connections_in_a_network.exs
- 1243. Array Transformation >>> array_transformation.exs
- 1266. Minimum Time Visiting All Points >>> minimum_time_visiting_all_points.exs
- 1375. Number of Times Binary String Is Prefix-Aligned >>> number_of_times_binary_string.exs
- 1376. Time Needed to Inform All Employees >>> time_needed_to_inform.exs
- 1443. Minimum Time to Collect All Apples in a Tree >>> collect_all_apples_in_tree.exs
- 1450. Number of Students Doing Homework at a Given Time >>> number_of_students_doing_homework_at_a_given_time.exs
- 1451. Rearrange Words in a Sentence >>> rearrange_words_in_a_sentence.exs
- 1480. Running Sum of 1d Array >>> running_sum.exs
- 1528. Shuffle String >>> shuffle_string.exs
- 1566. Detect Pattern of Length M Repeated K or More Times >>> detect_pattern.exs
- 1578. Minimum Time to Make Rope Colorful >>> minimum_time_to_make_rope_colorful.exs
- 1604. Alert Using Same Key-Card Three or More Times in a One Hour Period >>> alert_using_same_key_card.exs
- 1700. Number of Students Unable to Eat Lunch >>> number_of_students_unable_to_eat_lunch.exs
- 1701. Average Waiting Time >>> average_vaiting_time.exs
- 1702. Maximum Binary String After Change >>> maximum_binary_string_after_change.exs
- 1723. Find Minimum Time to Finish All Jobs >>> find_minimum_time_to_finish_all_jobs.exs
- 1736. Latest Time by Replacing Hidden Digits >>> latest_time_by_replacing_hidden_digits.exs
- 1744. Can You Eat Your Favorite Candy on Your Favorite Day? >>> favorite_candy_on_favorite_day.exs
- 1748. Sum of Unique Elements >>> rearrange_characters.exs
- 1871. Jump Game VII >>> jump_game.exs
- 1929. Concatenation of Array >>> concatenation_of_array.exs
- 1945. Sum of Digits of String After Convert >>> sum_of_digits.exs
- 1955. Count Number of Special Subsequences >>> count_number_of_special_subsequences.exs
- 1957. Delete Characters to Make Fancy String >>> delete_characters_to_make_fancy_string.exs
- 1958. Check if Move is Legal >>> check_if_move_is_legal.exs
- 1974. Minimum Time to Type Word Using Special Typewriter >>> minimum_time_to_type_word_using_special_typewriter.exs
- 1975. Maximum Matrix Sum >>> maximum_matrix_sum.exs
- 2073. Time Needed to Buy Tickets >>> time_needed_to_buy.exs
- 2220. Minimum Bit Flips to Convert Number >>> minimum_bit_flips.exs
- 2221. Find Triangular Sum of an Array >>> find_triangular_sum.exs
- 2243. Calculate Digit Sum of a String >>> calculate_digit_sum_of_string.exs
- 2285. Maximum Total Importance of Roads >>> maximum_total_importance.exs
- 2287. Rearrange Characters to Make Target String >>> rearrange_characters.exs
- 2309. Greatest English Letter in Upper and Lower Case >>> greatest_letter.exs
- 2351. First Letter to Appear Twice >>> first_letter_to_appear_twice.exs
- 2380. Time Needed to Rearrange a Binary String >>> time_needed_to_rearrange.exs
- 2412. Minimum Money Required Before Transactions >>> minimum_money_required_before_transactions.exs
- 2413. Smallest Even Multiple >>> smallest_even_multiple.exs
- 2544. Alternating Digit Sum >>> alternating_digit_sum.exs
- 2727. Is Object Empty >>> is_object_empty.exs
- 2863. Maximum Length of Semi-Decreasing Subarrays >>> maximum_length_of_semi_decreasing_subarrays.exs
- 2976. Minimum Cost to Convert String I >>> minimum_cost_to_convert_string.exs
- 2977. Minimum Cost to Convert String II >>> minimum_cost_to_convert_string.exs
- 3043. Find the Length of the Longest Common Prefix >>> common_prefix.exs
- 3083. Existence of a Substring in a String and Its Reverse >>> existence_substring_in_string.exs
- 3123. Find Edges in Shortest Paths >>> find_edges_in_shortest_paths.exs
- Matching strings up to letter permutation >>> matching_strings_up_to_letter_permutation.exs
- Maximum Length of Semi-Increasing Subarrays >>> maximum_length_of_semi_decreasing_subarrays.exs
Tasks: 97(2) >>> Files: 76
$ git clone git@github.com:rubygitflow/leetcode_elixir.git && cd leetcode_elixir/
$ elixir latest_time_by_replacing_hidden_digits.exs
$ elixir test/full_test.exs