Category: Chinese
chinese
第81題,題目如下: There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values). Before being passed to your function, nums is rotated at an unknown pivot index k (0 <= k < nums.length) such that the …
第80題,題目如下, Given an integer array nums sorted in non-decreasing order, remove some duplicates in-place such that each unique element appears at most twice. The relative order of the elements should be kept the same. Since it is impossible …
第79題,題目如下: Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally …
第78題,題目如下: Given an integer array nums of unique elements, return all possible subsets (the power set).The solution set must not contain duplicate subsets. Return the solution in any order. Example 1: Input: nums = Output: ,,,,,,,] …
第77題,題目如下: Given two integers n and k, return all possible combinations of k numbers chosen from the range . You may return the answer in any order. Example 1: Input: n = 4, k = 2 …
第76題,題目如下: Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicates) is included in the window. If there is no such substring, return the empty string "". …
第75題,題目如下: Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue. …
第74題,問題如下: You are given an m x n integer matrix matrix with the following two properties: Each row is sorted in non-decreasing order. The first integer of each row is greater than the …
第73題,題目如下: Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0‘s. You must do it in place. Example 1: Input: matrix = ,,] …
第72題,題目如下: Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. You have the following three operations permitted on a word: Insert a character Delete a character Replace …