File tree Expand file tree Collapse file tree 7 files changed +9
-7
lines changed
s0008_string_to_integer_atoi
s0014_longest_common_prefix Expand file tree Collapse file tree 7 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
package g0001_0100 .s0006_zigzag_conversion ;
2
2
3
- // #Medium #String #Top_Interview_150_Array/String
3
+ // #Medium #String #Top_Interview_150_Array/String #Big_O_Time_O(n)_Space_O(n)
4
4
// #2024_11_17_Time_2_ms_(99.71%)_Space_44.5_MB_(94.69%)
5
5
6
6
public class Solution {
Original file line number Diff line number Diff line change 1
1
package g0001_0100 .s0007_reverse_integer ;
2
2
3
- // #Medium #Top_Interview_Questions #Math #Udemy_Integers
3
+ // #Medium #Top_Interview_Questions #Math #Udemy_Integers #Big_O_Time_O(log10(x))_Space_O(1)
4
4
// #2024_11_09_Time_0_ms_(100.00%)_Space_40.9_MB_(36.21%)
5
5
6
6
public class Solution {
Original file line number Diff line number Diff line change 1
1
package g0001_0100 .s0008_string_to_integer_atoi ;
2
2
3
- // #Medium #Top_Interview_Questions #String #2024_11_09_Time_1_ms_(100.00%)_Space_42_MB_(95.40%)
3
+ // #Medium #Top_Interview_Questions #String #Big_O_Time_O(n)_Space_O(n)
4
+ // #2024_11_09_Time_1_ms_(100.00%)_Space_42_MB_(95.40%)
4
5
5
6
public class Solution {
6
7
public int myAtoi (String str ) {
Original file line number Diff line number Diff line change 1
1
package g0001_0100 .s0009_palindrome_number ;
2
2
3
- // #Easy #Math #Udemy_Integers #Top_Interview_150_Math
3
+ // #Easy #Math #Udemy_Integers #Top_Interview_150_Math #Big_O_Time_O(log10(x))_Space_O(1)
4
4
// #2024_11_09_Time_4_ms_(100.00%)_Space_44.1_MB_(28.20%)
5
5
6
6
public class Solution {
Original file line number Diff line number Diff line change 1
1
package g0001_0100 .s0012_integer_to_roman ;
2
2
3
- // #Medium #String #Hash_Table #Math #Top_Interview_150_Array/String
3
+ // #Medium #String #Hash_Table #Math #Top_Interview_150_Array/String #Big_O_Time_O(1)_Space_O(1)
4
4
// #2025_03_04_Time_2_ms_(100.00%)_Space_44.30_MB_(83.82%)
5
5
6
6
public class Solution {
Original file line number Diff line number Diff line change 1
1
package g0001_0100 .s0013_roman_to_integer ;
2
2
3
3
// #Easy #Top_Interview_Questions #String #Hash_Table #Math #Top_Interview_150_Array/String
4
- // #2025_03_04_Time_2_ms_(100.00%)_Space_44.54_MB_(91.65%)
4
+ // #Big_O_Time_O(n)_Space_O(1) # 2025_03_04_Time_2_ms_(100.00%)_Space_44.54_MB_(91.65%)
5
5
6
6
public class Solution {
7
7
public int romanToInt (String s ) {
Original file line number Diff line number Diff line change 1
1
package g0001_0100 .s0014_longest_common_prefix ;
2
2
3
3
// #Easy #Top_Interview_Questions #String #Level_2_Day_2_String #Udemy_Strings
4
- // #Top_Interview_150_Array/String #2025_03_04_Time_0_ms_(100.00%)_Space_41.35_MB_(87.42%)
4
+ // #Top_Interview_150_Array/String #Big_O_Time_O(n*m)_Space_O(m)
5
+ // #2025_03_04_Time_0_ms_(100.00%)_Space_41.35_MB_(87.42%)
5
6
6
7
public class Solution {
7
8
public String longestCommonPrefix (String [] strs ) {
You can’t perform that action at this time.
0 commit comments