leetcode总结
yyitao
这个作者很懒,什么都没留下…
展开
-
[leetcode] NimGame
[leetcode] NimGame You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the la原创 2016-03-25 10:40:16 · 236 阅读 · 0 评论 -
[leetcode]Two Sum
[leetcode]Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution. E原创 2016-03-25 17:55:16 · 177 阅读 · 0 评论 -
[leetcode]Single Number
[leetcode]Single Number题目: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could yo原创 2016-03-25 18:19:52 · 207 阅读 · 0 评论 -
[leetcode]Single Number II
[leetcode]Single Number II题目: Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity.原创 2016-03-25 19:17:24 · 305 阅读 · 0 评论 -
[leetcode]Single Number III
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 two elements that appear only once.原创 2016-03-25 19:51:04 · 250 阅读 · 0 评论