摘要:
> 题目描述太复杂, 意思就是移除数组中给定的元素 Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The order of the elements ma 阅读全文
摘要:
**Example 1:** ``` Input: nums = [1,1,2] Output: 2, nums = [1,2,_] Explanation: Your function should return k = 2, with the first two elements of nums 阅读全文
摘要:
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 阅读全文
摘要:
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 ```""```. 阅读全文
摘要:
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. ``` Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 ``` For examp 阅读全文
摘要:
Given an integer x, return true if x is a palindrome, and false otherwise. **Example 1:** ``` Input: x = 121 Output: true Explanation: 121 reads as 12 阅读全文
摘要:
# Description In this kata you will create a function that takes a list of non-negative integers and strings and returns a new list with the strings f 阅读全文