leetcode

module
v0.0.0-...-a58e2d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2024 License: None detected not legal advice

Directories

Path Synopsis
lc1
ac1
ac2
lc100_Same_Tree
ac1
ac2
lc1011_Capacity_To_Ship_Packages_Within_D_Days
ac1
lc1014_Best_Sightseeing_Pair
ac1
ac2
lc101_Symmetric_Tree
ac1
ac2
lc1022_Sum_of_Root_To_Leaf_Binary_Numbers
ac1
ac2
lc102_Binary_Tree_Level_Order_Traversal
ac1
lc103_Binary_Tree_Zigzag_Level_Order_Traversal
ac1
lc104_Maximum_Depth_of_Binary_Tree
ac1
lc105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal
ac1
ac2
lc106_Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal
ac1
ac2
lc107_Binary_Tree_Level_Order_Traversal_II
ac1
lc108_Convert_Sorted_Array_to_Binary_Search_Tree
ac1
lc109_Convert_Sorted_List_to_Binary_Search_Tree
ac1
ac2
lc110_Balanced_Binary_Tree
ac1
lc111_Minimum_Depth_of_Binary_Tree
ac1
ac2
lc112_Path_Sum
ac1
ac2
lc1137_N-th_Tribonacci_Number
ac1
lc113_Path_Sum_II
ac1
ac2
lc1143_Longest_Common_Subsequence
ac1
lc1146_Snapshot_Array
ac1
lc114_Flatten_Binary_Tree_to_Linked_List
ac1
ac2
lc116_Populating_Next_Right_Pointers_in_Each_Node
ac1
lc1170_Compare_Strings_by_Frequency_of_the_Smallest_Character
ac1
lc117_Populating_Next_Right_Pointers_in_Each_Node_II
ac1
lc118_Pascals_Triangle
ac1
lc119_Pascals_Triangle_II
ac1
lc11_Container_With_Most_Water
ac1
lc1201_Ugly_Number_III
ac1
lc120_Triangle
ac1
lc121_Best_Time_to_Buy_and_Sell_Stock
ac1
lc122_Best_Time_to_Buy_and_Sell_Stock_II
ac1
ac2
lc1237_Find_Positive_Integer_Solution_for_a_Given_Equation
ac1
lc1249_Minimum_Remove_to_Make_Valid_Parentheses
ac1
lc125_Valid_Palindrome
ac1
lc1283_Find_the_Smallest_Divisor_Given_a_Threshold
ac1
lc1292_Maximum_Side_Length_of_a_Square_with_Sum_Less_than_or_Equal_to_Threshold
ac1
lc129_Sum_Root_to_Leaf_Numbers
ac1
lc12_Integer_to_Roman
ac1
ac2
ac3
lc1300_Sum_of_Mutated_Array_Closest_to_Target
ac1
lc1314_Matrix_Block_Sum
ac1
lc1337_The_K_Weakest_Rows_in_a_Matrix
ac1
lc134_Gas_Station
ac1
lc1351_Count_Negative_Numbers_in_a_Sorted_Matrix
ac1
ac2
ac3
lc135_Candy
ac1
ac2
lc136_Single_Number
ac1
lc139_Word_Break
ac1
lc13_Roman_to_Integer
ac1
lc142_Linked_List_Cycle_II
ac1
ac2
lc143_Reorder_List
ac1
ac2
lc144_Binary_Tree_Preorder_Traversal
ac1
ac2
lc145_Binary_Tree_Postorder_Traversal
ac1
ac2
lc1482_Minimum_Number_of_Days_to_Make_m_Bouquets
ac1
lc1488_Avoid_Flood_in_The_City
ac1
lc1498_Number_of_Subsequences_That_Satisfy_the_Given_Sum_Condition
ac1
lc14_Longest_Common_Prefix
ac1
ac2
ac3
ac4
ac5
lc1508_Range_Sum_of_Sorted_Subarray_Sums
ac1
lc151_Reverse_Words_in_a_String
ac1
lc152_Maximum_Product_Subarray
ac1
lc153_Find_Minimum_in_Rotated_Sorted_Array
ac1
lc154
ac1
lc1552_Magnetic_Force_Between_Two_Balls
ac1
lc1557_Minimum_Number_of_Vertices_to_Reach_All_Nodes
ac1
lc155_Min_Stack
ac1
lc1562_Find_Latest_Group_of_Size_M
ac1
lc1567_Maximum_Length_of_Subarray_With_Positive_Product
ac1
lc1574_Shortest_Subarray_to_be_Removed_to_Make_Array_Sorted
ac1
lc15_3Sum
ac1
lc160_Intersection_of_Two_Linked_Lists
ac1
lc162_Find_Peak_Element
ac1
lc1648_Sell_Diminishing-Valued_Colored_Balls
ac1
lc167_Two_Sum_II-Input_array_is_sorted
ac1
lc169_Majority_Element
ac1
ac2
ac3
ac4
lc1712_Ways_to_Split_Array_Into_Three_Subarrays
ac1
lc173_Binary_Search_Tree_Iterator
ac1
lc1760_Minimum_Limit_of_Balls_in_a_Bag
ac1
lc1802_Maximum_Value_at_a_Given_Index_in_a_Bounded_Array
ac1
lc1818_Minimum_Absolute_Sum_Difference
ac1
lc1823_Find_the_Winner_of_the_Circular_Game
ac1
ac2
ac3
lc1838_Frequency_of_the_Most_Frequent_Element
ac1
lc1870_Minimum_Speed_to_Arrive_on_Time
ac1
lc187_Repeated_DNA_Sequences
ac1
ac2
lc1894_Find_the_Student_that_Will_Replace_the_Chalk
ac1
lc1898_Maximum_Number_of_Removable_Characters
ac1
ac2
lc189_Rotate_Array
ac1
ac2
lc1901_Find_a_Peak_Element_II
ac1
ac2
lc198_House_Robber
ac1
lc199_Binary_Tree_Right_Side_View
ac1
ac2
lc2
ac1
lc2096_Step-By-Step_Directions_From_a_Binary_Tree_Node_to_Another
ac1
ac2
lc209_Minimum_Size_Subarray_Sum
ac1
ac2
ac3
lc21
ac1
ac2
ac3
lc213_House_Robber_II
ac1
lc215_Kth_Largest_Element_in_an_Array
ac1
ac2
lc221_Maximal_Square
ac1
lc222_Count_Complete_Tree_Nodes
ac1
ac2
lc226_Invert_Binary_Tree
ac1
lc230_Kth_Smallest_Element_in_a_BST
ac1
ac2
ac3
lc235_Lowest_Common_Ancestor_of_a_Binary_Search_Tree
ac1
lc236_Lowest_Common_Ancestor_of_a_Binary_Tree
ac1
ac2
ac3
lc238_Product_of_Array_Except_Self
ac1
lc23_Merge_k_Sorted_Lists
ac1
ac2
ac3
lc240_Search_a_2D_Matrix_II
ac1
ac2
lc24_Swap_Nodes_in_Pairs
ac1
lc257_Binary_Tree_Paths
ac1
ac2
lc25_Reverse_Nodes_in_k-Group
ac1
lc264_Ugly_Number_II
ac1
lc26_Remove_Duplicates_from_Sorted_Array
ac1
lc274_H-Index
ac1
ac2
ac3
lc275_H-Index_II
ac1
lc279_Perfect_Squares
ac1
lc27_Remove_Element
ac1
lc287_Find_the_Duplicate_Number
ac1
lc28_Find_the_Index_of_the_First_Occurrence_in_a_String
ac1
ac2
ac3
lc290_Word_Pattern
ac1
lc297_Serialize_and_Deserialize_Binary_Tree
ac1
ac2
lc29_Divide_Two_Integers
ac1
lc300_Longest_Increasing_Subsequence
ac1
ac2
lc304_Range_Sum_Query_2D_Immutable
ac1
lc309_Best_Time_to_Buy_and_Sell_Stock_with_Cooldown
ac1
lc30_Substring_with_Concatenation_of_All_Words
ac1
ac2
lc314_Flatten_Nested_List_Iterator
ac1
ac2
lc322_Coin_Change
ac1
lc331
ac1
ac2
lc334_Increasing_Triplet_Subsequence
ac1
ac2
lc337_House_Robber_III
ac1
lc33_Search_in_Rotated_Sorted_Array
ac1
lc343_Integer_Break
ac1
lc347_Top_K_Frequent_Elements
ac1
ac2
lc349_Intersection_of_Two_Arrays
ac1
ac2
lc34_Find_First_and_Last_Position_of_Element_in_Sorted_Array
ac1
lc350_Intersection_of_Two_Arrays_II
ac1
ac2
lc354_Russian_Doll_Envelopes
ac1
lc35_Search_Insert_Position
ac1
lc367_Valid_Perfect_Square
ac1
lc36_Valid_Sudoku
ac1
lc374_Guess_Number_Higher_or_Lower
ac1
lc376_Wiggle_Subsequence
ac1
lc377_Combination_Sum_IV
ac1
lc378_Kth_Smallest_Element_in_a_Sorted_Matrix
ac1
lc383_Ransom_Note
ac1
lc392_Is_Subsequence
ac1
ac2
lc3_Longest_Substring_Without_Repeating_Characters
ac1
lc404_Sum_of_Left_Leaves
ac1
lc409_Longest_Palindrome
ac1
lc413_Arithmetic_Slices
ac1
lc415_Add_Strings
ac1
lc42_Trapping_Rain_Water
ac1
lc435_Non-overlapping_Intervals
ac1
lc436_Find_Right_Interval
ac1
lc437_Path_Sum_III
ac1
lc438_Find_All_Anagrams_in_a_String
ac1
ac2
lc43_Multiply_Strings
ac1
lc441_Arranging_Coins
ac1
lc449_Serialize_and_Deserialize_BST
ac1
ac2
lc450_Delete_Node_in_a_BST
ac1
ac2
ac3
lc451_Sort_Characters_By_Frequency
ac1
ac2
lc454_4Sum_II
ac1
ac2
lc459_Repeated_Substring_Pattern
ac1
ac2
lc45_Jump_Game_II
ac1
lc475_Heaters
ac1
ac2
lc497_Random_Point_in_Non_overlapping_Rectangles
ac1
lc49_Group_Anagrams
ac1
ac2
lc5
ac1
ac2
lc501_Find_Mode_in_Binary_Search_Tree
ac1
ac2
lc508_Most_Frequent_Subtree_Sum
ac1
lc509_Fibonacci_Number
ac1
lc50_Pow_x_n
ac1
lc513_Find_Bottom_Left_Tree_Value
ac1
lc515_Find_Largest_Value_in_Each_Tree_Row
ac1
lc516_Longest_Palindromic_Subsequence
ac1
lc518_Coin_Change_2
ac1
lc528_Random_Pick_with_Weight
ac1
lc530_Minimum_Absolute_Difference_in_BST
ac1
lc538_Convert_BST_to_Greater_Tree
ac1
ac2
ac3
lc53_Maximum_Subarray
ac1
lc54
ac1
lc540_Single_Element_in_a_Sorted_Array
ac1
lc543_Diameter_of_Binary_Tree
ac1
lc559_Maximum_Depth_of_N-ary_Tree
ac1
ac2
lc55_Jump_Game
ac1
ac2
lc560_Subarray_Sum_Equals_K
ac1
lc563_Binary_Tree_Tilt
ac1
lc56_Merge_Intervals
ac1
lc589_N-ary_Tree_Preorder_Traversal
ac1
ac2
lc58_Length_of_Last_Word
ac1
ac2
lc590_N-ary_Tree_Postorder_Traversal
ac1
ac2
lc59_Spiral_Matrix_II
ac1
lc6
ac1
lc606_Construct_String_from_Binary_Tree
ac1
lc611_Valid_Triangle_Number
ac1
ac2
lc617_Merge_Two_Binary_Trees
ac1
ac2
lc623_Add_One_Row_Tree
ac1
ac2
ac3
lc62_Unique_Paths
ac1
lc637_Average_of_Levels_in_Binary_Tree
ac1
ac2
lc63_Unique_Paths_II
ac1
lc64_Minimum_Path_Sum
ac1
lc652_Find_Duplicate_Subtrees
ac1
lc653_Two_Sum_IV_Input_is_a_BST
ac1
lc654_Maximum_Binary_Tree
ac1
lc655_Print_Binary_Tree
ac1
lc658_Find_K_Closest_Elements
ac1
ac2
lc662_Maximum_Width_of_Binary_Tree
ac1
ac2
lc671_Second_Minimum_Node_In_a_Binary_Tree
ac1
lc68_Text_Justification
ac1
lc69_Sqrt_x
ac1
lc7
ac1
ac2
lc700_Search_in_a_Binary_Search_Tree
ac1
lc704_Binary_Search
ac1
ac2
lc706_Design_HashMap
ac1
lc707_Design_Linked_List
ac1
lc70_Climbing_Stairs
ac1
lc714_Best_Time_to_Buy_and_Sell_Stock_with_Transaction_Fee
ac1
lc718_Maximum_Length_of_Repeated_Subarray
ac1
ac2
lc72_Edit_Distance
ac1
lc740_Delete_and_Earn
ac1
lc744_Find_Smallest_Letter_Greater_Than_Target
ac1
lc746_Min_Cost_Climbing_Stairs
ac1
lc74_Search_a_2D_Matrix
ac1
lc75_Sort_Colors
ac1
ac2
ac3
ac4
lc763_Partition_Labels
ac1
lc76_Minimum_Window_Substring
ac1
lc783_Minimum_Distance_Between_BST_Nodes
ac1
lc8
ac1
ac2
lc80_Remove_Duplicates_from_Sorted_Array_II
ac1
lc81_Search_in_Rotated_Sorted_Array_II
ac1
lc826_Most_Profit_Assigning_Work
ac1
lc82_Remove_Duplicates_from_Sorted_List_II
ac1
lc841_Keys_and_Rooms
ac1
ac2
lc852_Peak_Index_in_a_Mountain_Array
ac1
lc867
ac1
lc872_Leaf-Similar_Trees
ac1
lc875_Koko_Eating_Bananas
ac1
lc888_Fair_Candy_Swap
ac1
lc88_Merge_Sorted_Array
ac1
lc897_Increasing_Order_Search_Tree
ac1
ac2
lc9
ac1
lc911_Online_Election
ac1
ac2
lc912_Sort_an_Array
ac1
ac2
lc918_Maximum_Sum_Circular_Subarray
ac1
ac2
lc91_Decode_Ways
ac1
lc931_Minimum_Falling_Path_Sum
ac1
lc938_Range_Sum_BST
ac1
ac2
lc94_Binary_Tree_Inorder_Traversal
ac1
ac2
ac3
lc95_Unique_Binary_Search_Trees_II
ac1
lc965_Univalued_Binary_Tree
ac1
ac2
lc96_Unique_Binary_Search_Trees
ac1
ac2
lc973_K_Closest_Points_to_Origin
ac1
ac2
lc981_Time_Based_Key-Value_Store
ac1
lc98_Validate_Binary_Search_Tree
ac1
lc993_Cousins_in_Binary_Tree
ac1
lc997_Find_the_Town_Judge
ac1
lc99_Recover_Binary_Search_Tree
ac1
ac2
ac3
offer26
ac1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL