Skip to content

Commit

Permalink
Revert "Update Challenge.java (#125)"
Browse files Browse the repository at this point in the history
This reverts 22c858a.
  • Loading branch information
ByteLegendBot committed Nov 23, 2023
1 parent 22c858a commit 6789560
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/main/java/com/bytelegend/Challenge.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,10 @@ public static void main(String[] args) {
}

public static Object firstOrNull(Object[] array) {
if(array.length == 0) {
return null;
}
return array[0];
return array[1];
}

public static Object lastOrNull(Object[] array) {
if(array.length == 0) {
return null;
}
return array[array.length - 1];
return array[array.length];
}
}

0 comments on commit 6789560

Please sign in to comment.