码迷,mamicode.com
首页 >  
搜索关键字:leetcode1    ( 53个结果
LeetCode
1 class Solution { 2 public: 3 int removeDuplicates(int A[], int n) { 4 int *s=&A[0],*e=&A[0]; //s指向“连续数字”的第一个,e往后遍历相同的 5 int ...
分类:其他好文   时间:2014-11-27 17:58:47    阅读次数:158
3Sum and 4Sum @ Python Leetcode
1)3Sumhttps://oj.leetcode.com/problems/3sum/Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the a...
分类:编程语言   时间:2014-09-12 11:38:13    阅读次数:298
LeetCode1:Two Sum
题目: 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...
分类:其他好文   时间:2014-04-30 03:20:07    阅读次数:502
53条   上一页 1 ... 4 5 6
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!