Skip to content

Commit

Permalink
Improved java and kotlin tasks 6, 7, 8, 9
Browse files Browse the repository at this point in the history
  • Loading branch information
javadev committed Jan 22, 2024
1 parent be60f77 commit 3b54631
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package g0001_0100.s0006_zigzag_conversion;

// #Medium #String
// #Medium #String #2024_01_04_Time_2_ms_(99.60%)_Space_44.7_MB_(38.67%)

public class Solution {
public String convert(String s, int numRows) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package g0001_0100.s0007_reverse_integer;

// #Medium #Top_Interview_Questions #Math #Udemy_Integers
// #2024_01_04_Time_1_ms_(96.61%)_Space_40.9_MB_(11.62%)

public class Solution {
public int reverse(int x) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package g0001_0100.s0008_string_to_integer_atoi;

// #Medium #Top_Interview_Questions #String
// #Medium #Top_Interview_Questions #String #2024_01_04_Time_1_ms_(100.00%)_Space_42.7_MB_(8.86%)

public class Solution {
public int myAtoi(String str) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package g0001_0100.s0009_palindrome_number;

// #Easy #Math #Udemy_Integers
// #Easy #Math #Udemy_Integers #2024_01_04_Time_5_ms_(77.91%)_Space_44.1_MB_(13.06%)

public class Solution {
public boolean isPalindrome(int x) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package g0001_0100.s0006_zigzag_conversion

// #Medium #String
// #Medium #String #2023_07_03_Time_200_ms_(97.79%)_Space_37.3_MB_(91.71%)

class Solution {
fun convert(s: String, numRows: Int): String {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package g0001_0100.s0007_reverse_integer

// #Medium #Top_Interview_Questions #Math #Udemy_Integers
// #2023_07_03_Time_149_ms_(77.89%)_Space_33.5_MB_(84.42%)

class Solution {
fun reverse(x: Int): Int {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package g0001_0100.s0008_string_to_integer_atoi

// #Medium #Top_Interview_Questions #String
// #Medium #Top_Interview_Questions #String #2023_07_03_Time_172_ms_(82.90%)_Space_34.9_MB_(88.08%)

class Solution {
fun myAtoi(str: String): Int {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package g0001_0100.s0009_palindrome_number

// #Easy #Math #Udemy_Integers
// #Easy #Math #Udemy_Integers #2023_07_03_Time_217_ms_(95.34%)_Space_36.1_MB_(98.21%)

class Solution {
fun isPalindrome(x: Int): Boolean {
Expand Down

0 comments on commit 3b54631

Please sign in to comment.