2017年4月17日

kSum问题总结

摘要: 1、2Sum 题目: 方法一:两次迭代 public class TwoSum { public static int[] twoSum(int[] nums, int target) { int[] indices = {-1,-1}; for(int i=0; i<nums.length-1; 阅读全文
posted @ 2017-04-17 22:58 阳小徐 阅读(956) 评论(1) 推荐(0) 编辑