- 博客(23)
- 收藏
- 关注
原创 Leetcode ☞ 1. Two Sum ☆ 【Hashmap】
给一数组和一target数,有两个元素的和为target。求这两个元素的下标的和。
2016-02-29 15:42:18 880
原创 Leetcode ☞ 287. Find the Duplicate Number ☆
给一长度为n+1的数组,元素取值为1~n。只有一个元素多次出现,找出那个元素。要求:不能改动数组。
2016-02-29 09:04:07 425
原创 Leetcode ☞ 318. Maximum Product of Word Lengths ☆
给一char型数组,判断其中的各字符串是否含有相同元素,并给出长度乘积最大的结果。
2016-02-28 20:37:39 484
原创 Leetcode ☞ 122. Best Time to Buy and Sell Stock II
给一数组,第i位代表第i天的股票价格。求最大获利。
2016-02-27 13:17:10 332
原创 Leetcode ☞ 238. Product of Array Except Self ☆
输入数组nums,输出数组output里各位的值等于nums里除了自身外的乘积。要求:时间复杂度O(n),不许用除法。
2016-02-26 23:52:38 340
原创 Leetcode ☞ 283. Move Zeroes
网址:https://leetcode.com/problems/move-zeroes/Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For ex
2016-02-26 23:26:58 360
原创 Leetcode ☞ 258. Add Digits
网址:https://leetcode.com/problems/add-digits/258. Add DigitsMy SubmissionsQuestionTotal Accepted: 72085 Total Submissions: 149892 Difficulty: EasyGiven a non-negativ
2016-02-26 17:10:25 398
原创 Leetcode ☞ 260. Single Number III ☆☆☆
网址:https://leetcode.com/problems/single-number-iii/Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the
2016-02-26 16:10:13 365
原创 Leetcode ☞ 137. Single Number II ☆☆
网址:https://leetcode.com/problems/single-number-ii/137. Single Number IIMy SubmissionsQuestionTotal Accepted: 76234 Total Submissions: 206263 Difficulty: MediumGiven
2016-02-26 14:38:42 462
原创 Leetcode ☞ 136. Single Number
https://leetcode.com/problems/single-number/136. Single NumberMy SubmissionsQuestionTotal Accepted: 115703 Total Submissions: 237455 Difficulty: MediumGiven an arra
2016-02-26 10:18:40 339
原创 Leetcode ☞ 292. Nim Game
NIM游戏292. Nim GameMy SubmissionsQuestionTotal Accepted: 47343 Total Submissions: 91979 Difficulty: EasyYou are playing th
2016-02-24 17:09:06 555
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人