- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 leetcode 1
leetcode 1 two sum 给定一个数组和目标数,若数组中有两个数相加等于目标数,给出这两个数的下标 方法暴力搜索 最简单直观的方法,但是耗时长。 class Solution { public int[] twoSum(int[] nums, int target) { boolean k=false; int[] a=new int[2]; ...
2019-08-01 10:53:55 64
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人