Skip to content

Commit

Permalink
2020-05-24-Snail-add-actual-code-for-passing-sixth-test
Browse files Browse the repository at this point in the history
  • Loading branch information
JinHoooooou committed May 24, 2020
1 parent 33572f2 commit fde3220
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/snail_20200524/Snail.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
public class Snail {

public static int[] snail(int[][] array) {
if (array[0].length == 0) {
return new int[0];
}
int[] result = new int[array.length * array.length];
int index = 0;
for (int i = 0; i < array.length / 2; i++) {
Expand Down

0 comments on commit fde3220

Please sign in to comment.