LeetCode
道不虚行只在人
悟来时见江海古,苍崖行遍谒玄门。向道偶题人间世,一笛一剑一昆仑。
展开
-
String to Integer (atoi)
Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca原创 2017-05-03 21:53:47 · 228 阅读 · 0 评论 -
FizzBuzz
Write a program that outputs the string representation of numbers from 1 to n.But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”.原创 2017-05-03 21:38:57 · 301 阅读 · 0 评论 -
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 example, given nums = [0, 1, 0, 3, 12], after calling you原创 2017-05-03 21:21:08 · 227 阅读 · 0 评论 -
Longest Word in Dictionary through Deleting
Given a string and a string dictionary, find the longest string in the dictionary that can be formed by deleting some characters of the given string. If there are more than one possible results, retur原创 2017-05-21 10:30:58 · 285 阅读 · 0 评论 -
First Unique Character in a String
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1.Examples:s = "leetcode"return 0.s = "loveleetcode",return 2.Note:原创 2017-05-21 13:17:44 · 208 阅读 · 0 评论