mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-21 06:05:40 +08:00
Format the Java codes with the Reat Hat extension.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user