File tree Expand file tree Collapse file tree 15 files changed +15
-15
lines changed 
s0084_largest_rectangle_in_histogram 
s0094_binary_tree_inorder_traversal 
s0096_unique_binary_search_trees 
s0098_validate_binary_search_tree 
s0102_binary_tree_level_order_traversal 
s0104_maximum_depth_of_binary_tree 
s0105_construct_binary_tree_from_preorder_and_inorder_traversal 
s0114_flatten_binary_tree_to_linked_list 
s0121_best_time_to_buy_and_sell_stock 
s0124_binary_tree_maximum_path_sum 
s0128_longest_consecutive_sequence 
s0131_palindrome_partitioning 
s0138_copy_list_with_random_pointer Expand file tree Collapse file tree 15 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 11package  g0001_0100 .s0084_largest_rectangle_in_histogram ;
22
33// #Hard #Top_100_Liked_Questions #Top_Interview_Questions #Array #Stack #Monotonic_Stack 
4- // #Big_O_Time_O(n_log_n)_Space_O(log_n) #2022_06_20_Time_11_ms_(98.34%)_Space_72.8_MB_(81.14 %) 
4+ // #Big_O_Time_O(n_log_n)_Space_O(log_n) #2024_11_13_Time_9_ms_(93.28%)_Space_54.6_MB_(99.95 %) 
55
66public  class  Solution  {
77    public  int  largestRectangleArea (int [] heights ) {
Original file line number Diff line number Diff line change 22
33// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Depth_First_Search #Tree #Binary_Tree 
44// #Stack #Data_Structure_I_Day_10_Tree #Udemy_Tree_Stack_Queue #Big_O_Time_O(n)_Space_O(n) 
5- // #2022_06_21_Time_0_ms_ (100.00%)_Space_42.7_MB_(9.33 %) 
5+ // #2024_11_13_Time_0_ms_ (100.00%)_Space_41.6_MB_(47.93 %) 
66
77import  com_github_leetcode .TreeNode ;
88import  java .util .ArrayList ;
Original file line number Diff line number Diff line change 22
33// #Medium #Dynamic_Programming #Math #Tree #Binary_Tree #Binary_Search_Tree 
44// #Dynamic_Programming_I_Day_11 #Big_O_Time_O(n)_Space_O(1) 
5- // #2022_06_21_Time_0_ms_ (100.00%)_Space_40.4_MB_(72.43 %) 
5+ // #2024_11_13_Time_0_ms_ (100.00%)_Space_40.7_MB_(6.57 %) 
66
77public  class  Solution  {
88    public  int  numTrees (int  n ) {
Original file line number Diff line number Diff line change 33// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Depth_First_Search #Tree #Binary_Tree 
44// #Binary_Search_Tree #Data_Structure_I_Day_14_Tree #Level_1_Day_8_Binary_Search_Tree 
55// #Udemy_Tree_Stack_Queue #Big_O_Time_O(N)_Space_O(log(N)) 
6- // #2022_06_21_Time_0_ms_ (100.00%)_Space_43.4_MB_(72.88 %) 
6+ // #2024_11_13_Time_0_ms_ (100.00%)_Space_42.9_MB_(95.84 %) 
77
88import  com_github_leetcode .TreeNode ;
99
Original file line number Diff line number Diff line change 22
33// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Depth_First_Search #Breadth_First_Search 
44// #Tree #Binary_Tree #Data_Structure_I_Day_11_Tree #Level_2_Day_15_Tree 
5- // #Big_O_Time_O(N)_Space_O(log(N)) #2022_06_22_Time_0_ms_ (100.00%)_Space_42.3_MB_(46.67 %) 
5+ // #Big_O_Time_O(N)_Space_O(log(N)) #2024_11_13_Time_0_ms_ (100.00%)_Space_41.4_MB_(83.38 %) 
66
77import  com_github_leetcode .TreeNode ;
88
Original file line number Diff line number Diff line change 22
33// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Breadth_First_Search #Tree 
44// #Binary_Tree #Data_Structure_I_Day_11_Tree #Level_1_Day_6_Tree #Udemy_Tree_Stack_Queue 
5- // #Big_O_Time_O(N)_Space_O(N) #2022_06_22_Time_1_ms_ (91.09%)_Space_43.6_MB_(42.50 %) 
5+ // #Big_O_Time_O(N)_Space_O(N) #2024_11_13_Time_1_ms_ (91.19%)_Space_45.1_MB_(24.35 %) 
66
77import  com_github_leetcode .TreeNode ;
88import  java .util .ArrayList ;
Original file line number Diff line number Diff line change 33// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Depth_First_Search #Breadth_First_Search 
44// #Tree #Binary_Tree #Data_Structure_I_Day_11_Tree 
55// #Programming_Skills_I_Day_10_Linked_List_and_Tree #Udemy_Tree_Stack_Queue 
6- // #Big_O_Time_O(N)_Space_O(H) #2022_06_22_Time_0_ms_ (100.00%)_Space_42.9_MB_(67.03 %) 
6+ // #Big_O_Time_O(N)_Space_O(H) #2024_11_13_Time_0_ms_ (100.00%)_Space_42.2_MB_(88.11 %) 
77
88import  com_github_leetcode .TreeNode ;
99
Original file line number Diff line number Diff line change 22
33// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Hash_Table #Tree #Binary_Tree 
44// #Divide_and_Conquer #Data_Structure_II_Day_15_Tree #Big_O_Time_O(N)_Space_O(N) 
5- // #2022_06_22_Time_3_ms_(86.35%)_Space_45.2_MB_(14.09 %) 
5+ // #2024_11_13_Time_1_ms_(96.33%)_Space_44.5_MB_(36.49 %) 
66
77import  com_github_leetcode .TreeNode ;
88import  java .util .HashMap ;
Original file line number Diff line number Diff line change 22
33// #Medium #Top_100_Liked_Questions #Depth_First_Search #Tree #Binary_Tree #Stack #Linked_List 
44// #Udemy_Linked_List #Big_O_Time_O(N)_Space_O(N) 
5- // #2022_06_23_Time_1_ms_(75.27 %)_Space_42.8_MB_(36.48 %) 
5+ // #2024_11_13_Time_0_ms_(100.00 %)_Space_42.5_MB_(6.71 %) 
66
77import  com_github_leetcode .TreeNode ;
88
Original file line number Diff line number Diff line change 22
33// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Array #Dynamic_Programming 
44// #Data_Structure_I_Day_3_Array #Dynamic_Programming_I_Day_7 #Level_1_Day_5_Greedy #Udemy_Arrays 
5- // #Big_O_Time_O(N)_Space_O(1) #2022_06_23_Time_1_ms_(100.00%)_Space_58.9_MB_(93.57 %) 
5+ // #Big_O_Time_O(N)_Space_O(1) #2024_11_13_Time_1_ms_(99.78%)_Space_61.8_MB_(27.61 %) 
66
77public  class  Solution  {
88    public  int  maxProfit (int [] prices ) {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments