Given a non-empty array of digits representing a non-ne […]
Given a m x n grid filled with non-negative numbers, fi […]
Given n non-negative integers representing an elevation […]
Given an unsorted integer array, find the smallest miss […]
Suppose an array sorted in ascending order is rotated a […]
Implement next permutation, which rearranges numbers in […]
Given a string s, find the longest palindromic subseque […]
Determine whether an integer is a palindrome. An intege […]
Write a function that takes an unsigned integer and ret […]
A robot is located at the top-left corner of a m x n gr […]
Linux下默认安装的vim软件版本太低,想自己安装一个版本,同时不影响别人使用。 安装之前的版本为: 1.下 […]
A robot is located at the top-left corner of a m x n gr […]
Given a linked list, rotate the list to the right by k […]
给定一个数组,此数组是由数组进行循环移位后得到的,判断目标数字是否在循环数组中。例如:给定A=[6,7,8,1 […]
做完LeetCode 189. Rotate Array之后 想起了编程之美上也有一个类似的题目,拿过来一块重 […]