Skip to content

Commit

Permalink
fix 31 java
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Nov 22, 2024
1 parent fa9f728 commit 7867ecf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void swap_(int[] nums, int i, int j) {
// Helper method to reverse elements from start to end
private void reverse_(int[] nums, int start, int end) {
while (start < end) {
swap(nums, start, end);
swap_(nums, start, end);
start++;
end--;
}
Expand Down

0 comments on commit 7867ecf

Please sign in to comment.