style: format code (#4212)

close #4204
This commit is contained in:
acbin
2023-06-09 18:52:05 +08:00
committed by GitHub
parent ad03086f54
commit 00282efd8b
521 changed files with 5233 additions and 7309 deletions

View File

@ -30,7 +30,7 @@ public class SaddlebackSearch {
*/
private static int[] find(int[][] arr, int row, int col, int key) {
// array to store the answer row and column
int[] ans = { -1, -1 };
int[] ans = {-1, -1};
if (row < 0 || col >= arr[row].length) {
return ans;
}