Format the Java codes with the Reat Hat extension.

This commit is contained in:
krahets
2023-04-14 00:12:10 +08:00
parent 7273ee24e8
commit f8513455b5
39 changed files with 195 additions and 205 deletions

View File

@ -8,7 +8,6 @@ package chapter_computational_complexity;
import java.util.*;
public class leetcode_two_sum {
/* 方法一:暴力枚举 */
static int[] twoSumBruteForce(int[] nums, int target) {
@ -40,9 +39,9 @@ public class leetcode_two_sum {
public static void main(String[] args) {
// ======= Test Case =======
int[] nums = { 2,7,11,15 };
int[] nums = { 2, 7, 11, 15 };
int target = 9;
// ====== Driver Code ======
// 方法一
int[] res = twoSumBruteForce(nums, target);