File tree Expand file tree Collapse file tree 13 files changed +81
-81
lines changed
s0076_minimum_window_substring
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 Expand file tree Collapse file tree 13 files changed +81
-81
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0075_sort_colors
22
33// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Sorting #Two_Pointers
44// #Data_Structure_II_Day_2_Array #Udemy_Arrays #Big_O_Time_O(n)_Space_O(1)
5- // #2024_03_15_Time_1_ms_(76.26%)_Space_2.1_MB_(8.79 %)
5+ // #2025_05_06_Time_0_ms_(100.00%)_Space_4.17_MB_(11.59 %)
66
77func sortColors (nums []int ) {
88 zeroes := 0
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0076_minimum_window_substring
22
33// #Hard #Top_100_Liked_Questions #Top_Interview_Questions #String #Hash_Table #Sliding_Window
44// #Level_2_Day_14_Sliding_Window/Two_Pointer #Top_Interview_150_Sliding_Window
5- // #Big_O_Time_O(s.length())_Space_O(1) #2024_03_15_Time_0_ms_ (100.00%)_Space_3_MB_(66.67 %)
5+ // #Big_O_Time_O(s.length())_Space_O(1) #2025_05_06_Time_0_ms_ (100.00%)_Space_5.22_MB_(52.57 %)
66
77import "math"
88
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0078_subsets
22
33// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Bit_Manipulation #Backtracking
44// #Algorithm_II_Day_9_Recursion_Backtracking #Udemy_Backtracking/Recursion
5- // #Big_O_Time_O(2^n)_Space_O(n*2^n) #2024_03_15_Time_1_ms_(80.53%)_Space_2.4_MB_(60.25 %)
5+ // #Big_O_Time_O(2^n)_Space_O(n*2^n) #2025_05_06_Time_0_ms_(100.00%)_Space_4.31_MB_(21.64 %)
66
77func subsets (nums []int ) [][]int {
88 var res [][]int
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0079_word_search
22
33// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Matrix #Backtracking
44// #Algorithm_II_Day_11_Recursion_Backtracking #Top_Interview_150_Backtracking
5- // #Big_O_Time_O(4^(m*n))_Space_O(m*n) #2024_03_15_Time_103_ms_ (79.70%)_Space_2_MB_(58.16 %)
5+ // #Big_O_Time_O(4^(m*n))_Space_O(m*n) #2025_05_06_Time_99_ms_ (79.91%)_Space_4.02_MB_(88.63 %)
66
77func exist (board [][]byte , word string ) bool {
88 var run func (i , j , k int ) bool
Original file line number Diff line number Diff line change 11package 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) #2024_03_15_Time_95_ms_(77.81%)_Space_7.8_MB_(91.91 %)
4+ // #Big_O_Time_O(n_log_n)_Space_O(log_n) #2025_05_06_Time_2_ms_(94.16%)_Space_10.14_MB_(81.09 %)
55
66import "math"
77
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0094_binary_tree_inorder_traversal
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- // #2024_03_15_Time_0_ms_ (100.00%)_Space_2.3_MB_(82.78 %)
5+ // #2025_05_06_Time_0_ms_ (100.00%)_Space_4.12_MB_(29.86 %)
66
77type TreeNode struct {
88 Val int
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0096_unique_binary_search_trees
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- // #2024_03_15_Time_0_ms_ (100.00%)_Space_2.1_MB_(46.95 %)
5+ // #2025_05_06_Time_0_ms_ (100.00%)_Space_3.85_MB_(79.74 %)
66
77func numTrees (n int ) int {
88 result := 1
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package s0098_validate_binary_search_tree
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 #Top_Interview_150_Binary_Search_Tree #Big_O_Time_O(N)_Space_O(log(N))
6- // #2024_03_15_Time_6_ms_(55.36%)_Space_5.4_MB_(59.64 %)
6+ // #2025_05_06_Time_0_ms_(100.00%)_Space_7.21_MB_(46.50 %)
77
88type TreeNode struct {
99 Val int
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package s0101_symmetric_tree
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
55// #Top_Interview_150_Binary_Tree_General #Big_O_Time_O(N)_Space_O(log(N))
6- // #2024_03_15_Time_0_ms_ (100.00%)_Space_3_MB_(8.89 %)
6+ // #2025_05_06_Time_0_ms_ (100.00%)_Space_4.79_MB_(79.66 %)
77
88type TreeNode struct {
99 Val int
You can’t perform that action at this time.
0 commit comments