string
Userxiazj
这个作者很懒,什么都没留下…
展开
-
13. Roman to Integer
DescriptionHintsSubmissionsDiscussSolutionDiscussPick OneGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.原创 2017-11-01 19:13:10 · 329 阅读 · 0 评论 -
14. Longest Common Prefix
DescriptionHintsSubmissionsDiscussSolutionDiscussPick OneWrite a function to find the longest common prefix string amongst an array of strings.Seen this question in原创 2017-11-01 19:33:55 · 316 阅读 · 0 评论 -
28. Implement strStr()
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Seen this question in a real interview before? Yes原创 2017-11-01 20:21:31 · 207 阅读 · 0 评论 -
38. Count and Say
DescriptionHintsSubmissionsDiscussSolutionDiscussPick OneThe count-and-say sequence is the sequence of integers with the first five terms as following:1. 12. 113.原创 2017-11-01 20:51:16 · 280 阅读 · 0 评论 -
58. Length of Last Word
DescriptionHintsSubmissionsDiscussSolutionDiscussPick OneGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word原创 2017-11-01 21:02:23 · 262 阅读 · 0 评论 -
67. Add Binary
DescriptionHintsSubmissionsDiscussSolutionDiscussPick OneGiven two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".原创 2017-11-01 21:10:58 · 249 阅读 · 0 评论 -
125. Valid Palindrome
DescriptionHintsSubmissionsDiscussSolutionDiscussPick OneGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For exampl原创 2017-11-01 21:24:15 · 270 阅读 · 0 评论