leetcode
sinat_28928479
是吧
展开
-
【leetcode】【217】Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element原创 2015-06-11 12:14:19 · 222 阅读 · 0 评论 -
【leetcode】【136】Single Number I
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 you implement it without using ext原创 2015-06-10 21:50:43 · 229 阅读 · 0 评论 -
【leetcode】【137】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. Could you implement it without u原创 2015-06-10 22:45:12 · 232 阅读 · 0 评论 -
【leetcode】【66】Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.解题思路:此题是把数组每个元素当成整数的原创 2015-06-11 12:37:59 · 311 阅读 · 0 评论