01 2020 档案
摘要:题目如下: Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank has the following rul
        阅读全文
            
摘要:题目如下: Given a m * n matrix mat of integers, sort it diagonally in ascending order from the top-left to the bottom-right then return the sorted array. 
        阅读全文
            
摘要:题目如下: Given a palindromic string palindrome, replace exactly one character by any lowercase English letter so that the string becomes the lexicographi
        阅读全文
            
摘要:题目如下: Given a binary tree root and an integer target, delete all the leaf nodes with value target. Note that once you delete a leaf node with value ta
        阅读全文
            
摘要:题目如下: Given a string s. Return all the words vertically in the same order in which they appear in s.Words are returned as a list of strings, complete 
        阅读全文
            
摘要:题目如下: Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit (6 becomes 9
        阅读全文
            
摘要:题目如下: You have a keyboard layout as shown above in the XY plane, where each English uppercase letter is located at some coordinate, for example, the l
        阅读全文
            
摘要:题目如下: There are n computers numbered from 0 to n-1 connected by ethernet cables connections forming a network where connections[i] = [a, b] represents
        阅读全文
            
摘要:题目如下: Given 3 positives numbers a, b and c. Return the minimum flips required in some bits of a and b to make ( a OR b == c ). (bitwise OR operation).
        阅读全文
            
摘要:题目如下: Given an integer n. No-Zero integer is a positive integer which doesn't contain any 0 in its decimal representation. Return a list of two intege
        阅读全文
            
摘要:题目如下: Return the number of distinct non-empty substrings of text that can be written as the concatenation of some string with itself. Example 1: Input
        阅读全文
            
摘要:题目如下: Given a binary tree, return the sum of values of nodes with even-valued grandparent. (A grandparent of a node is the parent of its parent, if it
        阅读全文
            
摘要:题目如下: Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is the sum of all elements mat[r][c] for i - K <= r <=
        阅读全文
            
摘要:题目如下: We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pair of elements [a, b] = [
        阅读全文
            
摘要:题目如下: In the video game Fallout 4, the quest "Road to Freedom" requires players to reach a metal dial called the "Freedom Trail Ring", and use the dia
        阅读全文
            
摘要:题目如下: A car travels from a starting position to a destination which is target miles east of the starting position. Along the way, there are gas statio
        阅读全文
            
摘要:题目如下: Given a string s. In one step you can insert any character at any index of the string. Return the minimum number of steps to make s palindrome. 
        阅读全文
            
摘要:题目如下: There are n people, each person has a unique id between 0 and n-1. Given the arrays watchedVideos and friends, where watchedVideos[i] and friend
        阅读全文
            
摘要:题目如下: Given a string s formed by digits ('0' - '9') and '#' . We want to map s to English lowercase characters as follows: Characters ('a' to 'i') are
        阅读全文
            
摘要:题目如下: Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Example 2: Example 3: Constraints: 1 <=
        阅读全文
            
摘要:题目如下: Given two binary search trees root1 and root2. Return a list containing all the integers from both trees sorted in ascending order. Example 1: E
        阅读全文
            
摘要:题目如下: Given an array of non-negative integers arr, you are initially positioned at start index of the array. When you are at index i, you can jump to 
        阅读全文
            
摘要:题目如下: Given n boxes, each box is given in the format [status, candies, keys, containedBoxes] where: status[i]: an integer which is 1 if box[i] is open
        阅读全文
            
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号