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