File tree 28 files changed +155
-151
lines changed
s0011_container_with_most_water
s0017_letter_combinations_of_a_phone_number
s0104_maximum_depth_of_binary_tree
s0151_reverse_words_in_a_string
s0199_binary_tree_right_side_view
s0206_reverse_linked_list
s0208_implement_trie_prefix_tree
s0215_kth_largest_element_in_an_array
s0236_lowest_common_ancestor_of_a_binary_tree
s0238_product_of_array_except_self
s0452_minimum_number_of_arrows_to_burst_balloons
g0701_0800/s0739_daily_temperatures
g0901_1000/s0918_maximum_sum_circular_subarray
g1101_1200/s1143_longest_common_subsequence
28 files changed +155
-151
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Greedy #Two_Pointers
2
- // #Algorithm_II_Day_4_Two_Pointers #Top_Interview_150_Two_Pointers #Big_O_Time_O(n)_Space_O(1)
3
- // #2025_03_22_Time_2_ms_(80.13%)_Space_65.63_MB_(10.65%)
2
+ // #LeetCode_75_Two_Pointers #Algorithm_II_Day_4_Two_Pointers #Top_Interview_150_Two_Pointers
3
+ // #Big_O_Time_O(n)_Space_O(1) # 2025_03_22_Time_2_ms_(80.13%)_Space_65.63_MB_(10.65%)
4
4
5
5
function maxArea ( height : number [ ] ) : number {
6
6
let maxArea = - 1
Original file line number Diff line number Diff line change 1
1
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Hash_Table #Backtracking
2
- // #Algorithm_II_Day_11_Recursion_Backtracking #Udemy_Backtracking/Recursion
3
- // #Top_Interview_150_Backtracking #Big_O_Time_O(4^n)_Space_O(n)
2
+ // #LeetCode_75_Backtracking #Algorithm_II_Day_11_Recursion_Backtracking
3
+ // #Udemy_Backtracking/Recursion # Top_Interview_150_Backtracking #Big_O_Time_O(4^n)_Space_O(n)
4
4
// #2025_03_22_Time_0_ms_(100.00%)_Space_56.27_MB_(8.55%)
5
5
6
6
function letterCombinations ( digits : string ) : string [ ] {
Original file line number Diff line number Diff line change 1
1
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Dynamic_Programming #Math
2
- // #Combinatorics #Algorithm_II_Day_13_Dynamic_Programming #Dynamic_Programming_I_Day_15
3
- // #Level_1_Day_11_Dynamic_Programming #Big_O_Time_O(m*n)_Space_O(m*n)
4
- // #2025_03_23_Time_0_ms_(100.00%)_Space_55.15_MB_(43.54%)
2
+ // #Combinatorics #LeetCode_75_DP/Multidimensional #Algorithm_II_Day_13_Dynamic_Programming
3
+ // #Dynamic_Programming_I_Day_15 #Level_1_Day_11_Dynamic_Programming
4
+ // #Big_O_Time_O(m*n)_Space_O(m*n) # 2025_03_23_Time_0_ms_(100.00%)_Space_55.15_MB_(43.54%)
5
5
6
6
function uniquePaths ( m : number , n : number ) : number {
7
7
let aboveRow = Array ( n ) . fill ( 1 )
Original file line number Diff line number Diff line change 1
- // #Hard #Array #String #Simulation #Top_Interview_150_Array/String
2
- // #2025_04_05_Time_0_ms_(100.00%)_Space_55.70_MB_(38.14 %)
1
+ // #Easy #Top_Interview_Questions #Math #Binary_Search #Binary_Search_I_Day_4
2
+ // #Top_Interview_150_Math #2025_04_16_Time_1_ms_(74.84%)_Space_57.85_MB_(56.21 %)
3
3
4
4
function mySqrt ( x : number ) : number {
5
5
let low = 1
Original file line number Diff line number Diff line change 1
- // #Medium #Top_100_Liked_Questions #String #Dynamic_Programming
1
+ // #Medium #Top_100_Liked_Questions #String #Dynamic_Programming #LeetCode_75_DP/Multidimensional
2
2
// #Algorithm_II_Day_18_Dynamic_Programming #Dynamic_Programming_I_Day_19
3
3
// #Udemy_Dynamic_Programming #Top_Interview_150_Multidimensional_DP #Big_O_Time_O(n^2)_Space_O(n2)
4
4
// #2025_03_23_Time_6_ms_(93.83%)_Space_61.09_MB_(45.68%)
Original file line number Diff line number Diff line change 1
- // #Medium #Two_Pointers #Linked_List #Top_Interview_150_Linked_List
2
- // #2025_04_05_Time_0_ms_(100.00%)_Space_58.16_MB_(62.07%)
1
+ // #Easy #Top_Interview_Questions #Array #Sorting #Two_Pointers #Data_Structure_I_Day_2_Array
2
+ // #Top_Interview_150_Array/String # 2025_04_05_Time_0_ms_(100.00%)_Space_58.16_MB_(62.07%)
3
3
4
4
/**
5
5
* Do not return anything, modify nums1 in-place instead.
Original file line number Diff line number Diff line change 1
1
// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Depth_First_Search #Breadth_First_Search
2
- // #Tree #Binary_Tree #Data_Structure_I_Day_11_Tree
2
+ // #Tree #Binary_Tree #LeetCode_75_Binary_Tree/DFS # Data_Structure_I_Day_11_Tree
3
3
// #Programming_Skills_I_Day_10_Linked_List_and_Tree #Udemy_Tree_Stack_Queue
4
4
// #Top_Interview_150_Binary_Tree_General #Big_O_Time_O(N)_Space_O(H)
5
5
// #2025_03_26_Time_0_ms_(100.00%)_Space_59.10_MB_(43.48%)
Original file line number Diff line number Diff line change 1
1
// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Array #Bit_Manipulation
2
- // #Data_Structure_II_Day_1_Array #Algorithm_I_Day_14_Bit_Manipulation #Udemy_Integers
3
- // #Top_Interview_150_Bit_Manipulation #Big_O_Time_O(N)_Space_O(1)
4
- // #2025_03_26_Time_1_ms_(78.27%)_Space_58.44_MB_(41.08%)
2
+ // #LeetCode_75_Bit_Manipulation #Data_Structure_II_Day_1_Array
3
+ // #Algorithm_I_Day_14_Bit_Manipulation #Udemy_Integers #Top_Interview_150_Bit_Manipulation
4
+ // #Big_O_Time_O(N)_Space_O(1) # 2025_03_26_Time_1_ms_(78.27%)_Space_58.44_MB_(41.08%)
5
5
6
6
function singleNumber ( nums : number [ ] ) : number {
7
7
let ans = 0
Original file line number Diff line number Diff line change 1
- // #Medium #String #Two_Pointers #Udemy_Strings #Top_Interview_150_Array /String
2
- // #2025_04_08_Time_0_ms_(100.00%)_Space_57.70_MB_(48.75%)
1
+ // #Medium #String #Two_Pointers #LeetCode_75_Array /String #Udemy_Strings
2
+ // #Top_Interview_150_Array/String # 2025_04_08_Time_0_ms_(100.00%)_Space_57.70_MB_(48.75%)
3
3
4
4
function reverseWords ( s : string ) : string {
5
5
return s
Original file line number Diff line number Diff line change 1
- // #Medium #Top_Interview_Questions #Array #Binary_Search #Algorithm_II_Day_2_Binary_Search
2
- // #Binary_Search_II_Day_12 #Top_Interview_150_Binary_Search
1
+ // #Medium #Top_Interview_Questions #Array #Binary_Search #LeetCode_75_Binary_Search
2
+ // #Algorithm_II_Day_2_Binary_Search # Binary_Search_II_Day_12 #Top_Interview_150_Binary_Search
3
3
// #2025_04_08_Time_0_ms_(100.00%)_Space_55.40_MB_(60.85%)
4
4
5
5
function findPeakElement ( nums : number [ ] ) : number {
Original file line number Diff line number Diff line change 1
1
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Dynamic_Programming
2
- // #Algorithm_I_Day_12_Dynamic_Programming #Dynamic_Programming_I_Day_3
2
+ // #LeetCode_75_DP/1D # Algorithm_I_Day_12_Dynamic_Programming #Dynamic_Programming_I_Day_3
3
3
// #Level_2_Day_12_Dynamic_Programming #Udemy_Dynamic_Programming #Top_Interview_150_1D_DP
4
4
// #Big_O_Time_O(n)_Space_O(n) #2025_03_26_Time_0_ms_(100.00%)_Space_55.74_MB_(28.06%)
5
5
Original file line number Diff line number Diff line change 1
1
// #Medium #Top_100_Liked_Questions #Depth_First_Search #Breadth_First_Search #Tree #Binary_Tree
2
- // #Data_Structure_II_Day_16_Tree #Level_2_Day_15_Tree #Top_Interview_150_Binary_Tree_BFS
3
- // #2025_04_10_Time_0_ms_(100.00%)_Space_56.98_MB_(73.71%)
2
+ // #LeetCode_75_Binary_Tree/BFS #Data_Structure_II_Day_16_Tree #Level_2_Day_15_Tree
3
+ // #Top_Interview_150_Binary_Tree_BFS # 2025_04_10_Time_0_ms_(100.00%)_Space_56.98_MB_(73.71%)
4
4
5
5
import { TreeNode } from '../../com_github_leetcode/treenode'
6
6
Original file line number Diff line number Diff line change 1
1
// #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Linked_List #Recursion
2
- // #Data_Structure_I_Day_8_Linked_List #Algorithm_I_Day_10_Recursion_Backtracking
3
- // #Level_1_Day_3_Linked_List #Udemy_Linked_List #Big_O_Time_O(N)_Space_O(1)
4
- // #2025_03_26_Time_0_ms_(100.00%)_Space_58.92_MB_(16.01%)
2
+ // #LeetCode_75_LinkedList #Data_Structure_I_Day_8_Linked_List
3
+ // #Algorithm_I_Day_10_Recursion_Backtracking #Level_1_Day_3_Linked_List #Udemy_Linked_List
4
+ // #Big_O_Time_O(N)_Space_O(1) # 2025_03_26_Time_0_ms_(100.00%)_Space_58.92_MB_(16.01%)
5
5
6
6
import { ListNode } from '../../com_github_leetcode/listnode'
7
7
Original file line number Diff line number Diff line change 1
1
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Hash_Table #Design #Trie
2
- // #Level_2_Day_16_Design #Udemy_Trie_and_Heap #Top_Interview_150_Trie
2
+ // #LeetCode_75_Trie # Level_2_Day_16_Design #Udemy_Trie_and_Heap #Top_Interview_150_Trie
3
3
// #Big_O_Time_O(word.length())_or_O(prefix.length())_Space_O(N)
4
4
// #2025_03_26_Time_48_ms_(63.95%)_Space_81.97_MB_(12.22%)
5
5
Original file line number Diff line number Diff line change 1
1
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Sorting #Heap_Priority_Queue
2
- // #Divide_and_Conquer #Quickselect #Data_Structure_II_Day_20_Heap_Priority_Queue
3
- // #Top_Interview_150_Heap #Big_O_Time_O(n*log(n))_Space_O(log(n))
4
- // #2025_03_26_Time_4_ms_(99.64%)_Space_66.28_MB_(62.13%)
2
+ // #Divide_and_Conquer #Quickselect #LeetCode_75_Heap/Priority_Queue
3
+ // #Data_Structure_II_Day_20_Heap_Priority_Queue #Top_Interview_150_Heap
4
+ // #Big_O_Time_O(n*log(n))_Space_O(log(n)) # 2025_03_26_Time_4_ms_(99.64%)_Space_66.28_MB_(62.13%)
5
5
6
6
function findKthLargest ( nums : number [ ] , k : number ) : number {
7
7
const countingLen = 2e4 + 1
Original file line number Diff line number Diff line change 1
1
// #Medium #Top_100_Liked_Questions #Depth_First_Search #Tree #Binary_Tree
2
- // #Data_Structure_II_Day_18_Tree #Udemy_Tree_Stack_Queue #Top_Interview_150_Binary_Tree_General
3
- // #Big_O_Time_O(n)_Space_O(n) #2025_03_28_Time_61_ms_(75.97%)_Space_65.98_MB_(36.62%)
2
+ // #LeetCode_75_Binary_Tree/DFS #Data_Structure_II_Day_18_Tree #Udemy_Tree_Stack_Queue
3
+ // #Top_Interview_150_Binary_Tree_General #Big_O_Time_O(n)_Space_O(n)
4
+ // #2025_03_28_Time_61_ms_(75.97%)_Space_65.98_MB_(36.62%)
4
5
5
6
/*
6
7
* Definition for a binary tree node.
Original file line number Diff line number Diff line change 1
- // #Medium #Top_100_Liked_Questions #Array #Prefix_Sum #Data_Structure_II_Day_5_Array #Udemy_Arrays
2
- // #Top_Interview_150_Array/String #Big_O_Time_O(n^2)_Space_O(n)
3
- // #2025_03_28_Time_3_ms_(92.81%)_Space_70.08_MB_(42.74%)
1
+ // #Medium #Top_100_Liked_Questions #Array #Prefix_Sum #LeetCode_75_Array/String
2
+ // #Data_Structure_II_Day_5_Array #Udemy_Arrays # Top_Interview_150_Array/String
3
+ // #Big_O_Time_O(n^2)_Space_O(n) # 2025_03_28_Time_3_ms_(92.81%)_Space_70.08_MB_(42.74%)
4
4
5
5
function productExceptSelf ( nums : number [ ] ) : number [ ] {
6
6
const n = nums . length
Original file line number Diff line number Diff line change 1
- // #Easy #Top_100_Liked_Questions #Array #Two_Pointers #Algorithm_I_Day_3_Two_Pointers
2
- // #Programming_Skills_I_Day_6_Array #Udemy_Arrays #Big_O_Time_O(n)_Space_O(1)
3
- // #2025_03_28_Time_1_ms_(82.86%)_Space_62.16_MB_(10.71%)
1
+ // #Easy #Top_100_Liked_Questions #Array #Two_Pointers #LeetCode_75_Two_Pointers
2
+ // #Algorithm_I_Day_3_Two_Pointers #Programming_Skills_I_Day_6_Array #Udemy_Arrays
3
+ // #Big_O_Time_O(n)_Space_O(1) # 2025_03_28_Time_1_ms_(82.86%)_Space_62.16_MB_(10.71%)
4
4
5
5
/*
6
6
Do not return anything, modify nums in-place instead.
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_03_28_Time_1_ms_(89.22%)_Space_62.26_MB_(53.31%)
1
+ // #Easy #Dynamic_Programming #Bit_Manipulation #LeetCode_75_Bit_Manipulation
2
+ // #Udemy_Bit_Manipulation #Big_O_Time_O(num)_Space_O(num)
3
+ // #2025_03_28_Time_1_ms_(89.22%)_Space_62.26_MB_(53.31%)
3
4
4
5
function countBits ( n : number ) : number [ ] {
5
6
const bits : number [ ] = [ 0 ]
Original file line number Diff line number Diff line change 1
- // #Easy #String #Dynamic_Programming #Two_Pointers #Dynamic_Programming_I_Day_19
2
- // #Level_1_Day_2_String #Udemy_Two_Pointers #Top_Interview_150_Two_Pointers
3
- // #2025_04_14_Time_0_ms_(100.00%)_Space_56.51_MB_(36.22%)
1
+ // #Easy #String #Dynamic_Programming #Two_Pointers #LeetCode_75_Two_Pointers
2
+ // #Dynamic_Programming_I_Day_19 #Level_1_Day_2_String #Udemy_Two_Pointers
3
+ // #Top_Interview_150_Two_Pointers # 2025_04_14_Time_0_ms_(100.00%)_Space_56.51_MB_(36.22%)
4
4
5
5
function isSubsequence ( s : string , t : string ) : boolean {
6
6
let i = 0
Original file line number Diff line number Diff line change 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_03_28_Time_0_ms_(100.00%)_Space_55.70_MB_(34.63%)
1
+ // #Medium #Top_100_Liked_Questions #String #Stack #Recursion #LeetCode_75_Stack
2
+ // #Level_1_Day_14_Stack #Udemy_Strings #Big_O_Time_O(n)_Space_O(n)
3
+ // #2025_03_28_Time_0_ms_(100.00%)_Space_55.70_MB_(34.63%)
3
4
4
5
function decodeString ( s : string ) : string {
5
6
let stack : string [ ] = [ ]
Original file line number Diff line number Diff line change 1
1
// #Medium #Array #Depth_First_Search #Breadth_First_Search #Graph #Union_Find #Shortest_Path
2
- // #Top_Interview_150_Graph_General #2025_04_16_Time_0_ms_(100.00%)_Space_54.98_MB_(77.31%)
2
+ // #LeetCode_75_Graphs/DFS #Top_Interview_150_Graph_General
3
+ // #2025_04_16_Time_0_ms_(100.00%)_Space_54.98_MB_(77.31%)
3
4
4
5
type MapType = Map < string , string >
5
6
type RateType = Map < string , number >
Original file line number Diff line number Diff line change 1
- // #Medium #Depth_First_Search #Tree #Binary_Tree #Level_2_Day_7_Tree #Big_O_Time_O(n)_Space_O(n)
2
- // #2025_03_28_Time_3_ms_(86.41%)_Space_61.43_MB_(43.21%)
1
+ // #Medium #Depth_First_Search #Tree #Binary_Tree #LeetCode_75_Binary_Tree/DFS #Level_2_Day_7_Tree
2
+ // #Big_O_Time_O(n)_Space_O(n) # 2025_03_28_Time_3_ms_(86.41%)_Space_61.43_MB_(43.21%)
3
3
4
4
function pathSum ( root : TreeNode | null , targetSum : number ) : number {
5
5
let count = 0
Original file line number Diff line number Diff line change 1
- // #Medium #Array #Sorting #Greedy #Top_Interview_150_Intervals
1
+ // #Medium #Array #Sorting #Greedy #LeetCode_75_Intervals # Top_Interview_150_Intervals
2
2
// #2025_04_15_Time_75_ms_(98.54%)_Space_79.44_MB_(62.20%)
3
3
4
4
function findMinArrowShots ( points : number [ ] [ ] ) : number {
Original file line number Diff line number Diff line change 1
- // #Medium #Top_100_Liked_Questions #Array #Stack #Monotonic_Stack #Programming_Skills_II_Day_6
2
- // #Big_O_Time_O(n)_Space_O(n) #2025_03_28_Time_18_ms_(80.57%)_Space_78.12_MB_(62.08%)
1
+ // #Medium #Top_100_Liked_Questions #Array #Stack #Monotonic_Stack #LeetCode_75_Monotonic_Stack
2
+ // #Programming_Skills_II_Day_6 #Big_O_Time_O(n)_Space_O(n)
3
+ // #2025_03_28_Time_18_ms_(80.57%)_Space_78.12_MB_(62.08%)
3
4
4
5
function dailyTemperatures ( temperatures : number [ ] ) : number [ ] {
5
6
let stack : number [ ] = [ ]
Original file line number Diff line number Diff line change 1
1
// #Medium #Array #Dynamic_Programming #Divide_and_Conquer #Queue #Monotonic_Queue
2
- // #Medium #Array #Dynamic_Programming #Divide_and_Conquer #Queue #Monotonic_Queue
3
2
// #Dynamic_Programming_I_Day_5 #Top_Interview_150_Kadane's_Algorithm
4
3
// #2025_04_15_Time_2_ms_(91.04%)_Space_61.54_MB_(85.07%)
5
4
Original file line number Diff line number Diff line change 1
- // #Medium #Top_100_Liked_Questions #String #Dynamic_Programming
1
+ // #Medium #Top_100_Liked_Questions #String #Dynamic_Programming #LeetCode_75_DP/Multidimensional
2
2
// #Algorithm_II_Day_17_Dynamic_Programming #Dynamic_Programming_I_Day_19
3
3
// #Udemy_Dynamic_Programming #Big_O_Time_O(n*m)_Space_O(n*m)
4
4
// #2025_03_28_Time_50_ms_(69.40%)_Space_85.72_MB_(16.94%)
You can’t perform that action at this time.
0 commit comments