File tree Expand file tree Collapse file tree 10 files changed +12
-11
lines changed
s0347_top_k_frequent_elements
s0416_partition_equal_subset_sum
s0438_find_all_anagrams_in_a_string
s0543_diameter_of_binary_tree
s0560_subarray_sum_equals_k Expand file tree Collapse file tree 10 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
; #Medium #Top_100_Liked_Questions #Array #Dynamic_Programming #Breadth_First_Search
2
2
; #Algorithm_II_Day_18_Dynamic_Programming #Dynamic_Programming_I_Day_20
3
3
; #Level_2_Day_12_Dynamic_Programming #Top_Interview_150_1D_DP #Big_O_Time_O(m*n)_Space_O(amount)
4
- ; #2025_02_11_Time_29_ (100.00%)_Space_101.98_ (100.00%)
4
+ ; #2025_02_11_Time_29_ms_ (100.00%)_Space_101.98_MB_ (100.00%)
5
5
6
6
(define/contract (coin-change coins amount)
7
7
(-> (listof exact-integer?) exact-integer? exact-integer?)
Original file line number Diff line number Diff line change 1
- // #Easy #Dynamic_Programming #Bit_Manipulation #Udemy_Bit_Manipulation
2
- // #Big_O_Time_O(num)_Space_O(num) #2025_02_11_Time_3_ (100.00%)_Space_135.21_ (100.00%)
1
+ ; #Easy #Dynamic_Programming #Bit_Manipulation #Udemy_Bit_Manipulation
2
+ ; #Big_O_Time_O(num)_Space_O(num) #2025_02_11_Time_3_ms_ (100.00%)_Space_135.21_MB_ (100.00%)
3
3
4
4
(define (near-bit n i)
5
5
(if (and (<= i n) (< n (* i 2 )))
Original file line number Diff line number Diff line change 1
1
; #Medium #Top_100_Liked_Questions #Array #Hash_Table #Sorting #Heap_Priority_Queue #Counting
2
2
; #Divide_and_Conquer #Quickselect #Bucket_Sort #Data_Structure_II_Day_20_Heap_Priority_Queue
3
- ; #Big_O_Time_O(n*log(n))_Space_O(k) #2025_02_11_Time_3_ (100.00%)_Space_103.26_ (100.00%)
3
+ ; #Big_O_Time_O(n*log(n))_Space_O(k) #2025_02_11_Time_3_ms_ (100.00%)_Space_103.26_MB_ (100.00%)
4
4
5
5
(define (hash-table-counter ls)
6
6
(let ([counts (make-hash)])
Original file line number Diff line number Diff line change 1
1
; #Medium #Top_100_Liked_Questions #String #Stack #Recursion #Level_1_Day_14_Stack #Udemy_Strings
2
- ; #Big_O_Time_O(n)_Space_O(n) #2025_02_11_Time_0_ (100.00%)_Space_101.43_ (100.00%)
2
+ ; #Big_O_Time_O(n)_Space_O(n) #2025_02_11_Time_0_ms_ (100.00%)_Space_101.43_MB_ (100.00%)
3
3
4
4
(define/contract (decode-string s)
5
5
(-> string? string?)
Original file line number Diff line number Diff line change 1
1
; #Medium #Top_100_Liked_Questions #Array #Dynamic_Programming #Level_2_Day_13_Dynamic_Programming
2
- ; #Big_O_Time_O(n*sums)_Space_O(n*sums) #2025_02_11_Time_1098_(100.00%)_Space_132.26_(100.00%)
2
+ ; #Big_O_Time_O(n*sums)_Space_O(n*sums)
3
+ ; #2025_02_11_Time_1098_ms_(100.00%)_Space_132.26_MB_(100.00%)
3
4
4
5
(define/contract (can-partition nums)
5
6
(-> (listof exact-integer?) boolean?)
Original file line number Diff line number Diff line change 1
1
; #Medium #Depth_First_Search #Tree #Binary_Tree #Level_2_Day_7_Tree #Big_O_Time_O(n)_Space_O(n)
2
- ; #2025_02_11_Time_107_ (100.00%)_Space_136.84_ (100.00%)
2
+ ; #2025_02_11_Time_107_ms_ (100.00%)_Space_136.84_MB_ (100.00%)
3
3
4
4
; Definition for a binary tree node.
5
5
#|
Original file line number Diff line number Diff line change 1
1
; #Medium #Top_100_Liked_Questions #String #Hash_Table #Sliding_Window
2
2
; #Algorithm_II_Day_5_Sliding_Window #Programming_Skills_II_Day_12
3
3
; #Level_1_Day_12_Sliding_Window/Two_Pointer #Big_O_Time_O(n+m)_Space_O(1)
4
- ; #2025_02_11_Time_57_ (100.00%)_Space_131.96_ (100.00%)
4
+ ; #2025_02_11_Time_57_ms_ (100.00%)_Space_131.96_MB_ (100.00%)
5
5
6
6
(define/contract (find-anagrams s p)
7
7
(-> string? string? (listof exact-integer?))
Original file line number Diff line number Diff line change 1
1
; #Medium #Array #Dynamic_Programming #Backtracking #Big_O_Time_O(n*(sum+s))_Space_O(n*(sum+s))
2
- ; #2025_02_11_Time_1_ (100.00%)_Space_101.46_ (100.00%)
2
+ ; #2025_02_11_Time_1_ms_ (100.00%)_Space_101.46_MB_ (100.00%)
3
3
4
4
(define/contract (find-target-sum-ways nums target)
5
5
(-> (listof exact-integer?) exact-integer? exact-integer?)
Original file line number Diff line number Diff line change 1
1
; #Easy #Top_100_Liked_Questions #Depth_First_Search #Tree #Binary_Tree #Level_2_Day_7_Tree
2
2
; #Udemy_Tree_Stack_Queue #Big_O_Time_O(n)_Space_O(n)
3
- ; #2025_02_11_Time_0_ (100.00%)_Space_102.61_ (100.00%)
3
+ ; #2025_02_11_Time_0_ms_ (100.00%)_Space_102.61_MB_ (100.00%)
4
4
5
5
; Definition for a binary tree node.
6
6
#|
Original file line number Diff line number Diff line change 1
1
; #Medium #Top_100_Liked_Questions #Array #Hash_Table #Prefix_Sum #Data_Structure_II_Day_5_Array
2
- ; #Big_O_Time_O(n)_Space_O(n) #2025_02_11_Time_56_ (100.00%)_Space_131.71_ (_%)
2
+ ; #Big_O_Time_O(n)_Space_O(n) #2025_02_11_Time_56_ms_ (100.00%)_Space_131.71_MB_ (_%)
3
3
4
4
(define/contract (subarray-sum nums k)
5
5
(-> (listof exact-integer?) exact-integer? exact-integer?)
You can’t perform that action at this time.
0 commit comments