81. Search in Rotated Sorted Array II (Medium)
There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values).
Welcome to Lan's Blog
There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values).
Given a string path, which is an absolute path (starting with a slash '/') to a file or directory in a Unix-style file system, convert it to the simplified canonical path.
Given the head of a linked list, rotate the list to the right by k places.
The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other.
Given an unsorted integer array nums, return the smallest missing positive integer.
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
Merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists.
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of the line i is at (i, ai) and (i, 0). Find two lines, which, together with the x-axis forms a container, such that the container contains the most water.
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
记录下刷题过程以及一些随机想法~~