Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
s50600822 committed Dec 9, 2023
1 parent 122c02a commit f1dee07
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import java.util.Arrays;

class Solution {
public void setZeroes(int[][] m) {
m[0][0] = 9999;
}

public static void main(String[] args) {
Solution self = new Solution();
int[][] i1 = new int[][]{{0,1,2,0},{3,4,5,2},{1,3,1,5}};
int[][] o1 = new int[][]{{0,0,0,0},{0,4,5,0},{0,3,1,0}};

self.setZeroes(i1);

assert Arrays.equals(i1, o1) == true;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class Solution {
public int myAtoi(String s) {
return -1;
}

public static void main(String[] args) {
Solution self = new Solution();
assert self.myAtoi("42") == 42;
assert self.myAtoi(" -42") == -42;
assert self.myAtoi("4193 with words") == 4193;
}
}

0 comments on commit f1dee07

Please sign in to comment.