Skip to content

Commit

Permalink
Revert "Update Challenge.java (#99)"
Browse files Browse the repository at this point in the history
This reverts 171b41d.
  • Loading branch information
ByteLegendBot committed Nov 23, 2023
1 parent 171b41d commit 4abe6d1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/java/com/bytelegend/Challenge.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void main(String[] args) {
* (`+`).
*/
public static int multiplyBy31(int n) {
return (n << 5) - n;
return 0;
}

/**
Expand All @@ -32,10 +32,6 @@ public static int multiplyBy31(int n) {
* addition sign (`+`).
*/
public static int divideBy2ThenMinus1(int n) {
if (n < 0){
n = -n;
return -(n >> 1) - 1;
}
return (n >> 1) - 1;
return 0;
}
}

0 comments on commit 4abe6d1

Please sign in to comment.