Skip to content

Commit 2d526d5

Browse files
authored
Improved tasks 6-14
1 parent ec35883 commit 2d526d5

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

src/main/kotlin/g0001_0100/s0006_zigzag_conversion/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package g0001_0100.s0006_zigzag_conversion
22

3-
// #Medium #String #Top_Interview_150_Array/String
3+
// #Medium #String #Top_Interview_150_Array/String #Big_O_Time_O(n)_Space_O(n)
44
// #2023_07_03_Time_200_ms_(97.79%)_Space_37.3_MB_(91.71%)
55

66
class Solution {

src/main/kotlin/g0001_0100/s0007_reverse_integer/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package g0001_0100.s0007_reverse_integer
22

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)
44
// #2023_07_03_Time_149_ms_(77.89%)_Space_33.5_MB_(84.42%)
55

66
class Solution {

src/main/kotlin/g0001_0100/s0008_string_to_integer_atoi/Solution.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package g0001_0100.s0008_string_to_integer_atoi
22

3-
// #Medium #Top_Interview_Questions #String #2023_07_03_Time_172_ms_(82.90%)_Space_34.9_MB_(88.08%)
3+
// #Medium #Top_Interview_Questions #String #Big_O_Time_O(n)_Space_O(n)
4+
// #2023_07_03_Time_172_ms_(82.90%)_Space_34.9_MB_(88.08%)
45

56
class Solution {
67
fun myAtoi(str: String): Int {

src/main/kotlin/g0001_0100/s0009_palindrome_number/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package g0001_0100.s0009_palindrome_number
22

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)
44
// #2023_07_03_Time_217_ms_(95.34%)_Space_36.1_MB_(98.21%)
55

66
class Solution {

src/main/kotlin/g0001_0100/s0012_integer_to_roman/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package g0001_0100.s0012_integer_to_roman
22

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)
44
// #2023_07_03_Time_180_ms_(98.25%)_Space_37_MB_(82.89%)
55

66
class Solution {

src/main/kotlin/g0001_0100/s0013_roman_to_integer/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package g0001_0100.s0013_roman_to_integer
22

33
// #Easy #Top_Interview_Questions #String #Hash_Table #Math #Top_Interview_150_Array/String
4-
// #2023_07_03_Time_211_ms_(83.47%)_Space_36.9_MB_(91.66%)
4+
// #Big_O_Time_O(n)_Space_O(1) #2023_07_03_Time_211_ms_(83.47%)_Space_36.9_MB_(91.66%)
55

66
class Solution {
77
fun romanToInt(s: String): Int {

src/main/kotlin/g0001_0100/s0014_longest_common_prefix/Solution.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package g0001_0100.s0014_longest_common_prefix
22

33
// #Easy #Top_Interview_Questions #String #Level_2_Day_2_String #Udemy_Strings
4-
// #Top_Interview_150_Array/String #2023_07_03_Time_154_ms_(89.70%)_Space_34.6_MB_(95.06%)
4+
// #Top_Interview_150_Array/String #Big_O_Time_O(n*m)_Space_O(m)
5+
// #2023_07_03_Time_154_ms_(89.70%)_Space_34.6_MB_(95.06%)
56

67
class Solution {
78
fun longestCommonPrefix(strs: Array<String>): String {

0 commit comments

Comments
 (0)