Skip to content

Commit 0233451

Browse files
committed
Improved erlang
1 parent 7e9dc3d commit 0233451

File tree

56 files changed

+102
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+102
-76
lines changed

src/main/erlang/g0001_0100/s0001_two_sum/Solution.erl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
% #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Array #Hash_Table
2-
% #Data_Structure_I_Day_2_Array #Level_1_Day_13_Hashmap #Udemy_Arrays #Big_O_Time_O(n)_Space_O(n)
3-
% #AI_can_be_used_to_solve_the_task #2025_01_05_Time_3_(97.50%)_Space_65.32_(7.50%)
1+
% #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Array #Hash_Table
2+
% #Data_Structure_I_Day_2_Array #Level_1_Day_13_Hashmap #Udemy_Arrays #Top_Interview_150_Hashmap
3+
% #Big_O_Time_O(n)_Space_O(n) #AI_can_be_used_to_solve_the_task
4+
% #2025_01_05_Time_3_(97.50%)_Space_65.32_(7.50%)
45

56
-spec two_sum(Nums :: [integer()], Target :: integer()) -> [integer()].
67
two_sum(Nums, Target) ->

src/main/erlang/g0001_0100/s0002_add_two_numbers/Solution.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
% #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Math #Linked_List #Recursion
22
% #Data_Structure_II_Day_10_Linked_List #Programming_Skills_II_Day_15
3-
% #Big_O_Time_O(max(N,M))_Space_O(max(N,M)) #AI_can_be_used_to_solve_the_task
4-
% #2025_01_05_Time_1_(77.78%)_Space_63.11_(100.00%)
3+
% #Top_Interview_150_Linked_List #Big_O_Time_O(max(N,M))_Space_O(max(N,M))
4+
% #AI_can_be_used_to_solve_the_task #2025_01_05_Time_1_(77.78%)_Space_63.11_(100.00%)
55

66
%% Definition for singly-linked list.
77
%%

src/main/erlang/g0001_0100/s0003_longest_substring_without_repeating_characters/Solution.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Hash_Table #Sliding_Window
22
% #Algorithm_I_Day_6_Sliding_Window #Level_2_Day_14_Sliding_Window/Two_Pointer #Udemy_Strings
3-
% #Big_O_Time_O(n)_Space_O(1) #AI_can_be_used_to_solve_the_task
3+
% #Top_Interview_150_Sliding_Window #Big_O_Time_O(n)_Space_O(1) #AI_can_be_used_to_solve_the_task
44
% #2025_01_08_Time_11_(100.00%)_Space_61.60_(60.00%)
55

66
-spec length_of_longest_substring(S :: unicode:unicode_binary()) -> integer().

src/main/erlang/g0001_0100/s0004_median_of_two_sorted_arrays/Solution.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% #Hard #Top_100_Liked_Questions #Top_Interview_Questions #Array #Binary_Search #Divide_and_Conquer
2-
% #Big_O_Time_O(log(min(N,M)))_Space_O(1) #AI_can_be_used_to_solve_the_task
3-
% #2025_01_08_Time_1_(100.00%)_Space_65.96_(100.00%)
2+
% #Top_Interview_150_Binary_Search #Big_O_Time_O(log(min(N,M)))_Space_O(1)
3+
% #AI_can_be_used_to_solve_the_task #2025_01_08_Time_1_(100.00%)_Space_65.96_(100.00%)
44

55
-spec find_median_sorted_arrays(Nums1 :: [integer()], Nums2 :: [integer()]) -> float().
66
find_median_sorted_arrays(Nums1, Nums2) ->

src/main/erlang/g0001_0100/s0005_longest_palindromic_substring/Solution.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
% #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Dynamic_Programming
22
% #Data_Structure_II_Day_9_String #Algorithm_II_Day_14_Dynamic_Programming
3-
% #Dynamic_Programming_I_Day_17 #Udemy_Strings #Big_O_Time_O(n)_Space_O(n)
4-
% #2025_01_08_Time_179_(100.00%)_Space_59.84_(100.00%)
3+
% #Dynamic_Programming_I_Day_17 #Udemy_Strings #Top_Interview_150_Multidimensional_DP
4+
% #Big_O_Time_O(n)_Space_O(n) #2025_01_08_Time_179_(100.00%)_Space_59.84_(100.00%)
55

66
-spec longest_palindrome(S :: unicode:unicode_binary()) -> unicode:unicode_binary().
77
longest_palindrome(S) ->

src/main/erlang/g0001_0100/s0006_zigzag_conversion/Solution.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
% #Medium #String #2025_01_08_Time_203_(100.00%)_Space_60.52_(100.00%)
1+
% #Medium #String #Top_Interview_150_Array/String
2+
% #2025_01_08_Time_203_(100.00%)_Space_60.52_(100.00%)
23

34
%% Define the function specification
45
-spec convert(S :: unicode:unicode_binary(), NumRows :: integer()) -> unicode:unicode_binary().

src/main/erlang/g0001_0100/s0009_palindrome_number/Solution.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
% #Easy #Math #Udemy_Integers #2025_01_09_Time_1_(100.00%)_Space_58.73_(70.00%)
1+
% #Easy #Math #Udemy_Integers #Top_Interview_150_Math
2+
% #2025_01_09_Time_1_(100.00%)_Space_58.73_(70.00%)
23

34
-spec is_palindrome(X :: integer()) -> boolean().
45
is_palindrome(X) when X < 0 ->

src/main/erlang/g0001_0100/s0011_container_with_most_water/Solution.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Greedy #Two_Pointers
2-
% #Algorithm_II_Day_4_Two_Pointers #Big_O_Time_O(n)_Space_O(1)
2+
% #Algorithm_II_Day_4_Two_Pointers #Top_Interview_150_Two_Pointers #Big_O_Time_O(n)_Space_O(1)
33
% #2025_01_09_Time_13_(100.00%)_Space_123.05_(100.00%)
44

55
-spec max_area([integer()]) -> integer().

src/main/erlang/g0001_0100/s0015_3sum/Solution.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
% #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Sorting #Two_Pointers
22
% #Data_Structure_II_Day_1_Array #Algorithm_II_Day_3_Two_Pointers #Udemy_Two_Pointers
3-
% #Big_O_Time_O(n*log(n))_Space_O(n^2) #2025_01_09_Time_1387_(100.00%)_Space_527.05_(_%)
3+
% #Top_Interview_150_Two_Pointers #Big_O_Time_O(n*log(n))_Space_O(n^2)
4+
% #2025_01_09_Time_1387_(100.00%)_Space_527.05_(_%)
45

56
-spec three_sum(Nums :: [integer()]) -> [[integer()]].
67

src/main/erlang/g0001_0100/s0017_letter_combinations_of_a_phone_number/Solution.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
% #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Hash_Table #Backtracking
22
% #Algorithm_II_Day_11_Recursion_Backtracking #Udemy_Backtracking/Recursion
3-
% #Big_O_Time_O(4^n)_Space_O(n) #2025_01_12_Time_0_(100.00%)_Space_58.43_(_%)
3+
% #Top_Interview_150_Backtracking #Big_O_Time_O(4^n)_Space_O(n)
4+
% #2025_01_12_Time_0_(100.00%)_Space_58.43_(_%)
45

56
-spec letter_combinations(Digits :: unicode:unicode_binary()) -> [unicode:unicode_binary()].
67
letter_combinations(Digits) ->

0 commit comments

Comments
 (0)