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
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
2
2
3
3
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Sorting #Two_Pointers
4
4
// #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 %)
6
6
7
7
func sortColors (nums []int ) {
8
8
zeroes := 0
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0076_minimum_window_substring
2
2
3
3
// #Hard #Top_100_Liked_Questions #Top_Interview_Questions #String #Hash_Table #Sliding_Window
4
4
// #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 %)
6
6
7
7
import "math"
8
8
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0078_subsets
2
2
3
3
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Bit_Manipulation #Backtracking
4
4
// #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 %)
6
6
7
7
func subsets (nums []int ) [][]int {
8
8
var res [][]int
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0079_word_search
2
2
3
3
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Matrix #Backtracking
4
4
// #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 %)
6
6
7
7
func exist (board [][]byte , word string ) bool {
8
8
var run func (i , j , k int ) bool
Original file line number Diff line number Diff line change 1
1
package s0084_largest_rectangle_in_histogram
2
2
3
3
// #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 %)
5
5
6
6
import "math"
7
7
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0094_binary_tree_inorder_traversal
2
2
3
3
// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Depth_First_Search #Tree #Binary_Tree
4
4
// #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 %)
6
6
7
7
type TreeNode struct {
8
8
Val int
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0096_unique_binary_search_trees
2
2
3
3
// #Medium #Dynamic_Programming #Math #Tree #Binary_Tree #Binary_Search_Tree
4
4
// #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 %)
6
6
7
7
func numTrees (n int ) int {
8
8
result := 1
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package s0098_validate_binary_search_tree
3
3
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Depth_First_Search #Tree #Binary_Tree
4
4
// #Binary_Search_Tree #Data_Structure_I_Day_14_Tree #Level_1_Day_8_Binary_Search_Tree
5
5
// #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 %)
7
7
8
8
type TreeNode struct {
9
9
Val int
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package s0101_symmetric_tree
3
3
// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Depth_First_Search #Breadth_First_Search
4
4
// #Tree #Binary_Tree #Data_Structure_I_Day_11_Tree #Level_2_Day_15_Tree
5
5
// #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 %)
7
7
8
8
type TreeNode struct {
9
9
Val int
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package s0102_binary_tree_level_order_traversal
3
3
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Breadth_First_Search #Tree
4
4
// #Binary_Tree #Data_Structure_I_Day_11_Tree #Level_1_Day_6_Tree #Udemy_Tree_Stack_Queue
5
5
// #Top_Interview_150_Binary_Tree_BFS #Big_O_Time_O(N)_Space_O(N)
6
- // #2024_03_19_Time_3_ms_(70.81%)_Space_3.8_MB_(31.96 %)
6
+ // #2025_05_06_Time_0_ms_(100.00%)_Space_5.45_MB_(96.04 %)
7
7
8
8
type TreeNode struct {
9
9
Val int
Original file line number Diff line number Diff line change 1
1
package s0104_maximum_depth_of_binary_tree
2
2
3
3
// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Depth_First_Search #Breadth_First_Search
4
- // #Tree #Binary_Tree #Data_Structure_I_Day_11_Tree
4
+ // #Tree #Binary_Tree #LeetCode_75_Binary_Tree/DFS # Data_Structure_I_Day_11_Tree
5
5
// #Programming_Skills_I_Day_10_Linked_List_and_Tree #Udemy_Tree_Stack_Queue
6
6
// #Top_Interview_150_Binary_Tree_General #Big_O_Time_O(N)_Space_O(H)
7
- // #2024_03_19_Time_0_ms_ (100.00%)_Space_4.6_MB_(19.81 %)
7
+ // #2025_05_06_Time_0_ms_ (100.00%)_Space_6.36_MB_(51.89 %)
8
8
9
9
type TreeNode struct {
10
10
Val int
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package s0105_construct_binary_tree_from_preorder_and_inorder_traversal
2
2
3
3
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Hash_Table #Tree #Binary_Tree
4
4
// #Divide_and_Conquer #Data_Structure_II_Day_15_Tree #Top_Interview_150_Binary_Tree_General
5
- // #Big_O_Time_O(N)_Space_O(N) #2024_03_19_Time_0_ms_ (100.00%)_Space_4.4_MB_(16.83 %)
5
+ // #Big_O_Time_O(N)_Space_O(N) #2025_05_06_Time_0_ms_ (100.00%)_Space_6.11_MB_(20.43 %)
6
6
7
7
type TreeNode struct {
8
8
Val int
You can’t perform that action at this time.
0 commit comments