Skip to content

Commit 0cf5001

Browse files
committed
Improved Erlang
1 parent e213fa5 commit 0cf5001

File tree

85 files changed

+86
-85
lines changed

Some content is hidden

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

85 files changed

+86
-85
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
% #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Array #Hash_Table
22
% #Data_Structure_I_Day_2_Array #Level_1_Day_13_Hashmap #Udemy_Arrays #Top_Interview_150_Hashmap
33
% #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%)
4+
% #2025_01_05_Time_3_ms_(97.50%)_Space_65.32_MB_(7.50%)
55

66
-spec two_sum(Nums :: [integer()], Target :: integer()) -> [integer()].
77
two_sum(Nums, Target) ->

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

Lines changed: 1 addition & 1 deletion
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
33
% #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%)
4+
% #AI_can_be_used_to_solve_the_task #2025_01_05_Time_1_ms_(77.78%)_Space_63.11_MB_(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,7 +1,7 @@
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
33
% #Top_Interview_150_Sliding_Window #Big_O_Time_O(n)_Space_O(1) #AI_can_be_used_to_solve_the_task
4-
% #2025_01_08_Time_11_(100.00%)_Space_61.60_(60.00%)
4+
% #2025_01_08_Time_11_ms_(100.00%)_Space_61.60_MB_(60.00%)
55

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

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

Lines changed: 1 addition & 1 deletion
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
22
% #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%)
3+
% #AI_can_be_used_to_solve_the_task #2025_01_08_Time_1_ms_(100.00%)_Space_65.96_MB_(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: 1 addition & 1 deletion
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
33
% #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%)
4+
% #Big_O_Time_O(n)_Space_O(n) #2025_01_08_Time_179_ms_(100.00%)_Space_59.84_MB_(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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% #Medium #String #Top_Interview_150_Array/String
2-
% #2025_01_08_Time_203_(100.00%)_Space_60.52_(100.00%)
2+
% #2025_01_08_Time_203_ms_(100.00%)_Space_60.52_MB_(100.00%)
33

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% #Medium #Top_Interview_Questions #Math #Udemy_Integers
2-
% #2025_01_08_Time_244_(100.00%)_Space_58.56_(100.00%)
2+
% #2025_01_08_Time_244_ms_(100.00%)_Space_58.56_MB_(100.00%)
33

44
-spec reverse(X :: integer()) -> integer().
55
reverse(X) -> reverse(X, 0).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% #Medium #Top_Interview_Questions #String #2025_01_09_Time_0_(100.00%)_Space_58.90_(100.00%)
1+
% #Medium #Top_Interview_Questions #String #2025_01_09_Time_0_ms_(100.00%)_Space_58.90_MB_(100.00%)
22

33
%% Define the function specification
44
-spec my_atoi(S :: binary()) -> integer().

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

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

44
-spec is_palindrome(X :: integer()) -> boolean().
55
is_palindrome(X) when X < 0 ->

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% #Hard #Top_Interview_Questions #String #Dynamic_Programming #Recursion #Udemy_Dynamic_Programming
2-
% #Big_O_Time_O(m*n)_Space_O(m*n) #2025_01_09_Time_2019_(100.00%)_Space_58.37_(100.00%)
2+
% #Big_O_Time_O(m*n)_Space_O(m*n) #2025_01_09_Time_2019_ms_(100.00%)_Space_58.37_MB_(100.00%)
33

44
-spec is_match(S :: unicode:unicode_binary(), P :: unicode:unicode_binary()) -> boolean().
55
is_match(S, P) ->

0 commit comments

Comments
 (0)