Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lisez/leetcode

LeetCode problem's solutions by JavaScript
https://github.com/lisez/leetcode

deno javascript leetcode typescript

Last synced: 5 days ago
JSON representation

LeetCode problem's solutions by JavaScript

Awesome Lists containing this project

README

        

# LeetCode

## ecmascript

- [1002_Find_Common_Characters](ecmascript/1002_Find_Common_Characters.ts)
- [1021_Remove_Outermost_Parentheses](ecmascript/1021_Remove_Outermost_Parentheses.ts)
- [1047_Remove_All_Adjacent_Duplicates_In_String](ecmascript/1047_Remove_All_Adjacent_Duplicates_In_String.ts)
- [1065_Index_Pairs_of_a_String](ecmascript/1065_Index_Pairs_of_a_String.ts)
- [1066_Campus_Bikes_II](ecmascript/1066_Campus_Bikes_II.ts)
- [1078_Occurrences_After_Bigram](ecmascript/1078_Occurrences_After_Bigram.ts)
- [1099_Two_Sum_Less_Than_K](ecmascript/1099_Two_Sum_Less_Than_K.ts)
- [1119_Remove_Vowels_from_a_String](ecmascript/1119_Remove_Vowels_from_a_String.ts)
- [1155_Number_of_Dice_Rolls_With_Target_Sum](ecmascript/1155_Number_of_Dice_Rolls_With_Target_Sum.ts)
- [1160_Find_Words_That_Can_Be_Formed_by_Characters](ecmascript/1160_Find_Words_That_Can_Be_Formed_by_Characters.ts)
- [1165_Single-Row_Keyboard](ecmascript/1165_Single-Row_Keyboard.ts)
- [1180_Count_Substrings_with_Only_One_Distinct_Letter](ecmascript/1180_Count_Substrings_with_Only_One_Distinct_Letter.ts)
- [1309_Decrypt_String_from_Alphabet_to_Integer_Mapping](ecmascript/1309_Decrypt_String_from_Alphabet_to_Integer_Mapping.ts)
- [1335_Minimum_Difficulty_of_a_Job_Schedule](ecmascript/1335_Minimum_Difficulty_of_a_Job_Schedule.ts)
- [1370_Increasing_Decreasing_String](ecmascript/1370_Increasing_Decreasing_String.ts)
- [1374_Generate_a_String_With_Characters_That_Have_Odd_Counts](ecmascript/1374_Generate_a_String_With_Characters_That_Have_Odd_Counts.ts)
- [1408_String_Matching_in_an_Array](ecmascript/1408_String_Matching_in_an_Array.ts)
- [1422_Maximum_Score_After_Splitting_a_String](ecmascript/1422_Maximum_Score_After_Splitting_a_String.ts)
- [1436_Destination_City](ecmascript/1436_Destination_City.ts)
- [1455_Check_If_a_Word_Occurs_As_a_Prefix_of_Any_Word_in_a_Sentence](ecmascript/1455_Check_If_a_Word_Occurs_As_a_Prefix_of_Any_Word_in_a_Sentence.ts)
- [1464_Maximum_Product_of_Two_Elements_in_an_Array](ecmascript/1464_Maximum_Product_of_Two_Elements_in_an_Array.ts)
- [1496_Path_Crossing](ecmascript/1496_Path_Crossing.ts)
- [1507_Reformat_Date](ecmascript/1507_Reformat_Date.ts)
- [1531_String_Compression_II](ecmascript/1531_String_Compression_II.ts)
- [1544_Make_The_String_Great](ecmascript/1544_Make_The_String_Great.ts)
- [1578_Minimum_Time_to_Make_Rope_Colorful](ecmascript/1578_Minimum_Time_to_Make_Rope_Colorful.ts)
- [1582_Special_Positions_in_a_Binary_Matrix](ecmascript/1582_Special_Positions_in_a_Binary_Matrix.ts)
- [1598_Crawler_Log_Folder](ecmascript/1598_Crawler_Log_Folder.ts)
- [159_Longest_Substring_with_At_Most_Two_Distinct_Characters](ecmascript/159_Longest_Substring_with_At_Most_Two_Distinct_Characters.ts)
- [1614_Maximum_Nesting_Depth_of_the_Parentheses](ecmascript/1614_Maximum_Nesting_Depth_of_the_Parentheses.ts)
- [1624_Largest_Substring_Between_Two_Equal_Characters](ecmascript/1624_Largest_Substring_Between_Two_Equal_Characters.ts)
- [1637_Widest_Vertical_Area_Between_Two_Points_Containing_No_Points](ecmascript/1637_Widest_Vertical_Area_Between_Two_Points_Containing_No_Points.ts)
- [1684_Count_the_Number_of_Consistent_Strings](ecmascript/1684_Count_the_Number_of_Consistent_Strings.ts)
- [1694_Reformat_Phone_Number](ecmascript/1694_Reformat_Phone_Number.ts)
- [1704_Determine_if_String_Halves_Are_Alike](ecmascript/1704_Determine_if_String_Halves_Are_Alike.ts)
- [171_Excel_Sheet_Column_Number](ecmascript/171_Excel_Sheet_Column_Number.ts)
- [1758_Minimum_Changes_To_Make_Alternating_Binary_String](ecmascript/1758_Minimum_Changes_To_Make_Alternating_Binary_String.ts)
- [1763_Longest_Nice_Substring](ecmascript/1763_Longest_Nice_Substring.ts)
- [1768_Merge_Strings_Alternately](ecmascript/1768_Merge_Strings_Alternately.ts)
- [1812_Determine_Color_of_a_Chessboard_Square](ecmascript/1812_Determine_Color_of_a_Chessboard_Square.ts)
- [1816_Truncate_Sentence](ecmascript/1816_Truncate_Sentence.ts)
- [1844_Replace_All_Digits_with_Characters](ecmascript/1844_Replace_All_Digits_with_Characters.ts)
- [1869_Longer_Contiguous_Segments_of_Ones_than_Zeros](ecmascript/1869_Longer_Contiguous_Segments_of_Ones_than_Zeros.ts)
- [1876_Substrings_of_Size_Three_with_Distinct_Characters](ecmascript/1876_Substrings_of_Size_Three_with_Distinct_Characters.ts)
- [1880_Check_if_Word_Equals_Summation_of_Two_Words](ecmascript/1880_Check_if_Word_Equals_Summation_of_Two_Words.ts)
- [1897_Redistribute_Characters_to_Make_All_Strings_Equal](ecmascript/1897_Redistribute_Characters_to_Make_All_Strings_Equal.ts)
- [1903_Largest_Odd_Number_in_String](ecmascript/1903_Largest_Odd_Number_in_String.ts)
- [1913_Maximum_Product_Difference_Between_Two_Pairs](ecmascript/1913_Maximum_Product_Difference_Between_Two_Pairs.ts)
- [1935_Maximum_Number_of_Words_You_Can_Type](ecmascript/1935_Maximum_Number_of_Words_You_Can_Type.ts)
- [1941_Check_if_All_Characters_Have_Equal_Number_of_Occurrences](ecmascript/1941_Check_if_All_Characters_Have_Equal_Number_of_Occurrences.ts)
- [1945_Sum_of_Digits_of_String_After_Convert](ecmascript/1945_Sum_of_Digits_of_String_After_Convert.ts)
- [1967_Number_of_Strings_That_Appear_as_Substrings_in_Word](ecmascript/1967_Number_of_Strings_That_Appear_as_Substrings_in_Word.ts)
- [1974_Minimum_Time_to_Type_Word_Using_Special_Typewriter](ecmascript/1974_Minimum_Time_to_Type_Word_Using_Special_Typewriter.ts)
- [2000_Reverse_Prefix_of_Word](ecmascript/2000_Reverse_Prefix_of_Word.ts)
- [2042_Check_if_Numbers_Are_Ascending_in_a_Sentence](ecmascript/2042_Check_if_Numbers_Are_Ascending_in_a_Sentence.ts)
- [2047_Number_of_Valid_Words_in_a_Sentence](ecmascript/2047_Number_of_Valid_Words_in_a_Sentence.1.ts)
- [2047_Number_of_Valid_Words_in_a_Sentence](ecmascript/2047_Number_of_Valid_Words_in_a_Sentence.ts)
- [2053_Kth_Distinct_String_in_an_Array](ecmascript/2053_Kth_Distinct_String_in_an_Array.ts)
- [2062_Count_Vowel_Substrings_of_a_String](ecmascript/2062_Count_Vowel_Substrings_of_a_String.ts)
- [2068_Check_Whether_Two_Strings_are_Almost_Equivalent](ecmascript/2068_Check_Whether_Two_Strings_are_Almost_Equivalent.ts)
- [2085_Count_Common_Words_With_One_Occurrence](ecmascript/2085_Count_Common_Words_With_One_Occurrence.ts)
- [20_valid_parenthese](ecmascript/20_valid_parenthese.js)
- [2103_Rings_and_Rods](ecmascript/2103_Rings_and_Rods.ts)
- [2108_Find_First_Palindromic_String_in_the_Array](ecmascript/2108_Find_First_Palindromic_String_in_the_Array.ts)
- [2124_Check_if_All_As](ecmascript/2124_Check_if_All_As.ts)
- [2125_Number_of_Laser_Beams_in_a_Bank](ecmascript/2125_Number_of_Laser_Beams_in_a_Bank.ts)
- [2129_Capitalize_the_Title](ecmascript/2129_Capitalize_the_Title.ts)
- [2138_Divide_a_String_Into_Groups_of_Size_k](ecmascript/2138_Divide_a_String_Into_Groups_of_Size_k.ts)
- [2185_Counting_Words_With_a_Given_Prefix](ecmascript/2185_Counting_Words_With_a_Given_Prefix.ts)
- [2224_Minimum_Number_of_Operations_to_Convert_Time](ecmascript/2224_Minimum_Number_of_Operations_to_Convert_Time.ts)
- [2243_Calculate_Digit_Sum_of_a_String](ecmascript/2243_Calculate_Digit_Sum_of_a_String.ts)
- [2255_Count_Prefixes_of_a_Given_String](ecmascript/2255_Count_Prefixes_of_a_Given_String.ts)
- [2264_Largest_3-Same-Digit_Number_in_String](ecmascript/2264_Largest_3-Same-Digit_Number_in_String.ts)
- [2278_Percentage_of_Letter_in_String](ecmascript/2278_Percentage_of_Letter_in_String.ts)
- [2283_Check_if_Number_Has_Equal_Digit_Count_and_Digit_Value](ecmascript/2283_Check_if_Number_Has_Equal_Digit_Count_and_Digit_Value.ts)
- [2309_Greatest_English_Letter_in_Upper_and_Lower_Case](ecmascript/2309_Greatest_English_Letter_in_Upper_and_Lower_Case.ts)
- [2315_Count_Asterisks](ecmascript/2315_Count_Asterisks.ts)
- [2351_First_Letter_to_Appear_Twice](ecmascript/2351_First_Letter_to_Appear_Twice.ts)
- [2353_Design_a_Food_Rating_System](ecmascript/2353_Design_a_Food_Rating_System.ts)
- [2399_Check_Distances_Between_Same_Letters](ecmascript/2399_Check_Distances_Between_Same_Letters.ts)
- [2418_Sort_the_People](ecmascript/2418_Sort_the_People.ts)
- [2423_Remove_Letter_To_Equalize_Frequency](ecmascript/2423_Remove_Letter_To_Equalize_Frequency.ts)
- [242_Valid_Anagram](ecmascript/242_Valid_Anagram.ts)
- [243_Shortest_Word_Distance](ecmascript/243_Shortest_Word_Distance.ts)
- [2482_Difference_Between_Ones_and_Zeros_in_Row_and_Column](ecmascript/2482_Difference_Between_Ones_and_Zeros_in_Row_and_Column.ts)
- [2490_Circular_Sentence](ecmascript/2490_Circular_Sentence.ts)
- [2496_Maximum_Value_of_a_String_in_an_Array](ecmascript/2496_Maximum_Value_of_a_String_in_an_Array.ts)
- [2506_Count_Pairs_Of_Similar_Strings](ecmascript/2506_Count_Pairs_Of_Similar_Strings.ts)
- [2586_Count_the_Number_of_Vowel_Strings_in_Range](ecmascript/2586_Count_the_Number_of_Vowel_Strings_in_Range.ts)
- [2619_Array_Prototype_Last](ecmascript/2619_Array_Prototype_Last.ts)
- [2620_Counter](ecmascript/2620_Counter.ts)
- [2621_Sleep](ecmascript/2621_Sleep.ts)
- [2623_Memoize](ecmascript/2623_Memoize.ts)
- [2626_Array_Reduce_Transformation](ecmascript/2626_Array_Reduce_Transformation.ts)
- [2629_Function_Composition](ecmascript/2629_Function_Composition.ts)
- [2634_Filter_Elements_from_Array](ecmascript/2634_Filter_Elements_from_Array.ts)
- [2635_Apply_Transform_Over_Each_Element_in_Array](ecmascript/2635_Apply_Transform_Over_Each_Element_in_Array.ts)
- [2648_Generate_Fibonacci_Sequence](ecmascript/2648_Generate_Fibonacci_Sequence.ts)
- [2665_Counter_II](ecmascript/2665_Counter_II.ts)
- [2666_Allow_One_Function_Call](ecmascript/2666_Allow_One_Function_Call.ts)
- [2667_Create_Hello_World_Function](ecmascript/2667_Create_Hello_World_Function.ts)
- [266_Palindrome_Permutation](ecmascript/266_Palindrome_Permutation.ts)
- [2677_Chunk_Array](ecmascript/2677_Chunk_Array.ts)
- [2678_Number_of_Senior_Citizens](ecmascript/2678_Number_of_Senior_Citizens.ts)
- [2690_Infinite_Method_Object](ecmascript/2690_Infinite_Method_Object.ts)
- [2695_Array_Wrapper](ecmascript/2695_Array_Wrapper.ts)
- [2696_Minimum_String_Length_After_Removing_Substrings](ecmascript/2696_Minimum_String_Length_After_Removing_Substrings.ts)
- [2697_Lexicographically_Smallest_Palindrome](ecmascript/2697_Lexicographically_Smallest_Palindrome.ts)
- [26_remove_duplicates_from_sorted_array](ecmascript/26_remove_duplicates_from_sorted_array.js)
- [2703_Return_Length_of_Arguments_Passed](ecmascript/2703_Return_Length_of_Arguments_Passed.ts)
- [2704_To_Be_Or_Not_To_Be](ecmascript/2704_To_Be_Or_Not_To_Be.ts)
- [2706_Buy_Two_Chocolates](ecmascript/2706_Buy_Two_Chocolates.ts)
- [2710_Remove_Trailing_Zeros_From_a_String](ecmascript/2710_Remove_Trailing_Zeros_From_a_String.ts)
- [2715_Timeout_Cancellation](ecmascript/2715_Timeout_Cancellation.ts)
- [2716_Minimize_String_Length](ecmascript/2716_Minimize_String_Length.ts)
- [2723_Add_Two_Promises](ecmascript/2723_Add_Two_Promises.ts)
- [2727_Is_Object_Empty](ecmascript/2727_Is_Object_Empty.ts)
- [2744_Find_Maximum_Number_of_String_Pairs](ecmascript/2744_Find_Maximum_Number_of_String_Pairs.ts)
- [2758_Next_Day](ecmascript/2758_Next_Day.ts)
- [2774_Array_Upper_Bound](ecmascript/2774_Array_Upper_Bound.ts)
- [2788_Split_Strings_by_Separator](ecmascript/2788_Split_Strings_by_Separator.ts)
- [2796_Repeat_String](ecmascript/2796_Repeat_String.ts)
- [2821_Delay_the_Resolution_of_Each_Promise](ecmascript/2821_Delay_the_Resolution_of_Each_Promise.ts)
- [2822_Inversion_of_Object](ecmascript/2822_Inversion_of_Object.ts)
- [2828_Check_if_a_String_Is_an_Acronym_of_Words](ecmascript/2828_Check_if_a_String_Is_an_Acronym_of_Words.ts)
- [2833_Furthest_Point_From_Origin](ecmascript/2833_Furthest_Point_From_Origin.ts)
- [2864_Maximum_Odd_Binary_Number](ecmascript/2864_Maximum_Odd_Binary_Number.ts)
- [2900_Longest_Unequal_Adjacent_Groups_Subsequence_I](ecmascript/2900_Longest_Unequal_Adjacent_Groups_Subsequence_I.ts)
- [2942_Find_Words_Containing_Character](ecmascript/2942_Find_Words_Containing_Character.ts)
- [2_Add_Two_Numbers](ecmascript/2_Add_Two_Numbers.js)
- [3014_Minimum_Number_of_Pushes_to_Type_Word_I](ecmascript/3014_Minimum_Number_of_Pushes_to_Type_Word_I.ts)
- [3019_Number_of_Changing_Keys](ecmascript/3019_Number_of_Changing_Keys.ts)
- [3042_Count_Prefix_and_Suffix_Pairs_I](ecmascript/3042_Count_Prefix_and_Suffix_Pairs_I.ts)
- [3083_Existence_of_a_Substring_in_a_String_and_Its_Reverse](ecmascript/3083_Existence_of_a_Substring_in_a_String_and_Its_Reverse.ts)
- [3090_Maximum_Length_Substring_With_Two_Occurrences](ecmascript/3090_Maximum_Length_Substring_With_Two_Occurrences.ts)
- [3110_Score_of_a_String](ecmascript/3110_Score_of_a_String.ts)
- [3114_Latest_Time_You_Can_Obtain_After_Replacing_Characters](ecmascript/3114_Latest_Time_You_Can_Obtain_After_Replacing_Characters.ts)
- [3120_Count_the_Number_of_Special_Characters_I](ecmascript/3120_Count_the_Number_of_Special_Characters_I.ts)
- [3146_Permutation_Difference_between_Two_Strings](ecmascript/3146_Permutation_Difference_between_Two_Strings.ts)
- [3168_Minimum_Number_of_Chairs_in_a_Waiting_Room](ecmascript/3168_Minimum_Number_of_Chairs_in_a_Waiting_Room.ts)
- [3174_Clear_Digits](ecmascript/3174_Clear_Digits.ts)
- [383_Ransom_Note](ecmascript/383_Ransom_Note.ts)
- [39_Combination_Sum](ecmascript/39_Combination_Sum.js)
- [412_Fizz_Buzz](ecmascript/412_Fizz_Buzz.js)
- [455_Assign_Cookies](ecmascript/455_Assign_Cookies.ts)
- [463_Island_Perimeter](ecmascript/463_Island_Perimeter.js)
- [500_Keyboard_Row](ecmascript/500_Keyboard_Row.js)
- [520_Detect_Capital](ecmascript/520_Detect_Capital.js)
- [657_Judge_Route_Circle](ecmascript/657_Judge_Route_Circle.ts)
- [661_Image_Smoother](ecmascript/661_Image_Smoother.ts)
- [682_Baseball_Game](ecmascript/682_Baseball_Game.js)
- [696_Count_Binary_Substrings](ecmascript/696_Count_Binary_Substrings.ts)
- [800_Similar_RGB_Color](ecmascript/800_Similar_RGB_Color.ts)
- [804_Unique_Morse_Code_Words](ecmascript/804_Unique_Morse_Code_Words.ts)
- [806_Number_of_Lines_To_Write_String](ecmascript/806_Number_of_Lines_To_Write_String.ts)
- [821_Shortest_Distance_to_a_Character](ecmascript/821_Shortest_Distance_to_a_Character.ts)
- [824_Goat_Latin](ecmascript/824_Goat_Latin.ts)
- [884_Uncommon_Words_from_Two_Sentences](ecmascript/884_Uncommon_Words_from_Two_Sentences.ts)
- [917_Reverse_Only_Letters](ecmascript/917_Reverse_Only_Letters.ts)
- [91_Decode_Ways](ecmascript/91_Decode_Ways.ts)
- [925_Long_Pressed_Name](ecmascript/925_Long_Pressed_Name.ts)
- [929_Unique_Email_Addresses](ecmascript/929_Unique_Email_Addresses.ts)
- [942_DI_String_Match](ecmascript/942_DI_String_Match.ts)
- [944_Delete_Columns_to_Make_Sorted](ecmascript/944_Delete_Columns_to_Make_Sorted.ts)