File tree Expand file tree Collapse file tree 15 files changed +36
-42
lines changed
s0022_generate_parentheses
s0023_merge_k_sorted_lists
s0024_swap_nodes_in_pairs
s0025_reverse_nodes_in_k_group
s0032_longest_valid_parentheses
s0033_search_in_rotated_sorted_array
s0034_find_first_and_last_position_of_element_in_sorted_array
s0035_search_insert_position
s0041_first_missing_positive
s0042_trapping_rain_water Expand file tree Collapse file tree 15 files changed +36
-42
lines changed Original file line number Diff line number Diff line change 2
2
3
3
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Dynamic_Programming
4
4
// #Backtracking #Algorithm_II_Day_11_Recursion_Backtracking #Udemy_Backtracking/Recursion
5
- // #Big_O_Time_O(2^n)_Space_O(n) #2023_08_09_Time_0_ms_ (100.00%)_Space_41.7_MB_(97.17 %)
5
+ // #Big_O_Time_O(2^n)_Space_O(n) #2024_11_10_Time_0_ms_ (100.00%)_Space_42.8_MB_(84.67 %)
6
6
7
7
import java .util .ArrayList ;
8
8
import java .util .List ;
Original file line number Diff line number Diff line change 2
2
3
3
// #Hard #Top_100_Liked_Questions #Top_Interview_Questions #Heap_Priority_Queue #Linked_List
4
4
// #Divide_and_Conquer #Merge_Sort #Big_O_Time_O(k*n*log(k))_Space_O(log(k))
5
- // #2023_08_09_Time_1_ms_(100.00%)_Space_42.9_MB_(98.59 %)
5
+ // #2024_11_10_Time_1_ms_(99.86%)_Space_44.1_MB_(79.93 %)
6
6
7
7
import com_github_leetcode .ListNode ;
8
8
Original file line number Diff line number Diff line change 2
2
3
3
// #Medium #Top_100_Liked_Questions #Linked_List #Recursion #Data_Structure_II_Day_12_Linked_List
4
4
// #Udemy_Linked_List #Big_O_Time_O(n)_Space_O(1)
5
- // #2023_08_09_Time_0_ms_ (100.00%)_Space_40.7_MB_(10.83 %)
5
+ // #2024_11_10_Time_0_ms_ (100.00%)_Space_41.4_MB_(20.29 %)
6
6
7
7
import com_github_leetcode .ListNode ;
8
8
Original file line number Diff line number Diff line change 2
2
3
3
// #Hard #Top_100_Liked_Questions #Linked_List #Recursion #Data_Structure_II_Day_13_Linked_List
4
4
// #Udemy_Linked_List #Big_O_Time_O(n)_Space_O(k)
5
- // #2023_08_09_Time_0_ms_ (100.00%)_Space_43_MB_(88.08 %)
5
+ // #2024_11_10_Time_0_ms_ (100.00%)_Space_44.4_MB_(33.90 %)
6
6
7
7
import com_github_leetcode .ListNode ;
8
8
Original file line number Diff line number Diff line change 1
1
package g0001_0100 .s0031_next_permutation ;
2
2
3
3
// #Medium #Top_100_Liked_Questions #Array #Two_Pointers #Big_O_Time_O(n)_Space_O(1)
4
- // #2023_08_09_Time_0_ms_ (100.00%)_Space_42_MB_(90.28 %)
4
+ // #2024_11_10_Time_0_ms_ (100.00%)_Space_43_MB_(39.33 %)
5
5
6
6
public class Solution {
7
7
public void nextPermutation (int [] nums ) {
Original file line number Diff line number Diff line change 1
1
package g0001_0100 .s0032_longest_valid_parentheses ;
2
2
3
3
// #Hard #Top_100_Liked_Questions #String #Dynamic_Programming #Stack #Big_O_Time_O(n)_Space_O(1)
4
- // #2023_08_09_Time_1_ms_(100.00%)_Space_41.4_MB_(85.22 %)
4
+ // #2024_11_10_Time_1_ms_(99.74%)_Space_42.2_MB_(80.93 %)
5
5
6
6
public class Solution {
7
7
public int longestValidParentheses (String s ) {
Original file line number Diff line number Diff line change 3
3
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Binary_Search
4
4
// #Algorithm_II_Day_1_Binary_Search #Binary_Search_I_Day_11 #Level_2_Day_8_Binary_Search
5
5
// #Udemy_Binary_Search #Big_O_Time_O(log_n)_Space_O(1)
6
- // #2023_08_09_Time_0_ms_ (100.00%)_Space_40.6_MB_(92.43 %)
6
+ // #2024_11_10_Time_0_ms_ (100.00%)_Space_42.2_MB_(21.10 %)
7
7
8
8
public class Solution {
9
9
public int search (int [] nums , int target ) {
Original file line number Diff line number Diff line change 2
2
3
3
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Binary_Search
4
4
// #Algorithm_II_Day_1_Binary_Search #Binary_Search_I_Day_5 #Big_O_Time_O(log_n)_Space_O(1)
5
- // #2023_08_09_Time_0_ms_ (100.00%)_Space_44.3_MB_(89.57 %)
5
+ // #2024_11_10_Time_0_ms_ (100.00%)_Space_45.7_MB_(82.78 %)
6
6
7
7
public class Solution {
8
8
public int [] searchRange (int [] nums , int target ) {
Original file line number Diff line number Diff line change 2
2
3
3
// #Easy #Top_100_Liked_Questions #Array #Binary_Search #Algorithm_I_Day_1_Binary_Search
4
4
// #Binary_Search_I_Day_2 #Big_O_Time_O(log_n)_Space_O(1)
5
- // #2023_08_09_Time_0_ms_ (100.00%)_Space_43.3_MB_(58.21 %)
5
+ // #2024_11_10_Time_0_ms_ (100.00%)_Space_43_MB_(40.42 %)
6
6
7
7
public class Solution {
8
8
public int searchInsert (int [] nums , int target ) {
Original file line number Diff line number Diff line change 2
2
3
3
// #Medium #Top_100_Liked_Questions #Array #Backtracking #Algorithm_II_Day_10_Recursion_Backtracking
4
4
// #Level_2_Day_20_Brute_Force/Backtracking #Udemy_Backtracking/Recursion
5
- // #Big_O_Time_O(2^n)_Space_O(n+2^n) #2023_08_09_Time_1_ms_(100.00%)_Space_43.6_MB_(90.84 %)
5
+ // #Big_O_Time_O(2^n)_Space_O(n+2^n) #2024_11_10_Time_1_ms_(99.99%)_Space_44.5_MB_(51.73 %)
6
6
7
7
import java .util .ArrayList ;
8
8
import java .util .List ;
You can’t perform that action at this time.
0 commit comments