问题描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t...
分类:
其他好文 时间:
2015-06-03 21:15:32
阅读次数:
99
博主忙毕业的事情,一个半月木有刷题,感觉手都生了....今天开始闭关修炼~~先拿道简单的题练练手Two Sum(熟悉吧熟悉吧)Given an array of integers, find two numbers such that they add up to a specific target...
分类:
其他好文 时间:
2015-05-30 07:04:07
阅读次数:
123
public class Solution {
public int[] twoSum(int[] nums, int target) {
int temp;
boolean flag = false;
int[] index = new int[2];
for(int i = 0; i < nums.length;...
分类:
编程语言 时间:
2015-05-29 23:18:15
阅读次数:
168
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-05-24 20:14:08
阅读次数:
116
leetcode 1 – Two Sum
最近打算开始练习下leetcode上面的题,原因有2点
- 1.保证自己每天有敲一定的代码练习,避免手生。
- 2.锻炼自己的思维能力吧,思维还是很重要的。 题目:
Given an array of integers, find two numbers such that they add up to a specific t...
分类:
其他好文 时间:
2015-05-20 16:25:06
阅读次数:
87
1.Two sumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of t...
分类:
其他好文 时间:
2015-05-19 00:23:26
阅读次数:
123
题目https://leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function tw...
分类:
其他好文 时间:
2015-05-11 01:15:36
阅读次数:
177
感觉有必要重新刷刷题了,为以后找工作做做准备,选择LeetCode+topcoder上的Data Science Tutorials,争取每天晚上10:00开始刷一道,复习一下相关知识点。------------------------------------------------------.....
分类:
其他好文 时间:
2015-05-08 06:56:53
阅读次数:
115
Problem:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the...
分类:
其他好文 时间:
2015-05-05 19:42:36
阅读次数:
101