The count-and-say sequence is the sequence of integers with the first five terms as following:
1. 1
2. 11
3. 21...
松鼠男
5年前 (2018-10-19) 5978℃ 0评论
0喜欢
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 inse...
松鼠男
5年前 (2018-10-19) 5930℃ 0评论
1喜欢
Implement strStr().
Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
实现 strStr() 函数。...
松鼠男
5年前 (2018-10-19) 5754℃ 0评论
0喜欢
Given an array nums and a value val, remove all instances of that value in-place and return the new length.
Do not allocate extra space for ...
松鼠男
5年前 (2018-10-19) 4883℃ 0评论
1喜欢
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.
Do not allocate...
松鼠男
5年前 (2018-10-19) 5301℃ 0评论
0喜欢
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is va...
松鼠男
5年前 (2018-10-19) 4742℃ 0评论
0喜欢
Write a function to find the longest common prefix string amongst an array of strings.
If there is no common prefix, return an empty string ...
松鼠男
5年前 (2018-10-19) 4782℃ 0评论
0喜欢
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
For example, two is written as II in Roman numeral, just ...
松鼠男
5年前 (2018-08-25) 5265℃ 0评论
0喜欢
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
判断一个整数是否是回文数。回文数是指正序(从左...
松鼠男
5年前 (2018-08-21) 3204℃ 0评论
1喜欢
Given a 32-bit signed integer, reverse digits of an integer.
给定一个 32 位有符号整数,将整数中的数字进行反转。
示例 1:
<strong>输入:</strong&g...
松鼠男
5年前 (2018-08-21) 3722℃ 0评论
0喜欢