LeetCode题解
晓_晨DEV
Android开发者
展开
-
【LeetCode题解】Single Number
Single Number(Java代码) 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 imp原创 2013-11-06 00:27:12 · 2157 阅读 · 0 评论 -
【LeetCode题解】Reverse Integer
Reverse Integer(Java代码) Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here are some g原创 2013-11-06 00:30:59 · 768 阅读 · 0 评论 -
【LeetCode题解】Single Number II
Single Number II (Java代码) 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 complexit原创 2013-11-08 17:53:28 · 940 阅读 · 2 评论 -
【LeetCode题解】Search Insert Position
Search Insert Position (Java代码) Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. Y原创 2013-11-09 21:59:31 · 1419 阅读 · 0 评论