12 2019 档案
摘要:题目如下: Given a binary tree, return the sum of values of its deepest leaves. Example 1: Constraints: The number of nodes in the tree is between 1 and 10
        阅读全文
            
摘要:题目如下: You are given a square board of characters. You can move on the board starting at the bottom right square marked with the character 'S'. You nee
        阅读全文
            
摘要:题目如下: Given an integer array arr and a target value target, return the integer value such that when we change all the integers larger than value in th
        阅读全文
            
摘要:题目如下: Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element 
        阅读全文
            
摘要:题目如下: Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into sets of k consecutive numbersRetu
        阅读全文
            
摘要:题目如下: Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Example 2: Constraints: 1 <= nums.length <
        阅读全文
            
摘要:题目如下: We want to use quad trees to store an N x N boolean grid. Each cell in the grid can only be true or false. The root node represents the whole gr
        阅读全文
            
摘要:题目如下: Given a rectangle of size n x m, find the minimum number of integer-sided squares that tile the rectangle. Example 1: Example 2: Example 3: Cons
        阅读全文
            
摘要:题目如下: Given a m x n matrix mat and an integer threshold. Return the maximum side-length of a square with a sum less than or equal to threshold or retu
        阅读全文
            
摘要:题目如下: An integer has sequential digits if and only if each digit in the number is one more than the previous digit. Return a sorted list of all the in
        阅读全文
            
摘要:题目如下: Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds 
        阅读全文
            
摘要:题目如下: You have a pointer at index 0 in an array of size arrLen. At each step, you can move 1 position to the left, 1 position to the right in the arra
        阅读全文
            
摘要:题目如下: Given a square grid of integers arr, a falling path with non-zero shifts is a choice of exactly one element from each row of arr, such that no t
        阅读全文
            
摘要:题目如下: Given a list of intervals, remove all intervals that are covered by another interval in the list. Interval [a,b) is covered by interval [c,d) if
        阅读全文
            
摘要:题目如下: Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 25% of the time. Return t
        阅读全文
            
摘要:题目如下: Design an Iterator class, which has: A constructor that takes a string characters of sorted distinct lowercase English letters and a number comb
        阅读全文
            
摘要:题目如下: Given a m x n binary matrix mat. In one step, you can choose one cell and flip it and all the four neighbours of it if they exist (Flip is chang
        阅读全文
            
摘要:题目如下: Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the r
        阅读全文
            
摘要:题目如下: There are n people whose IDs go from 0 to n - 1 and each person belongs exactly to one group. Given the array groupSizes of length n telling the
        阅读全文
            
摘要:题目如下: Given an integer number n, return the difference between the product of its digits and the sum of its digits. Example 1: Input: n = 234 Output: 
        阅读全文
            
摘要:题目如下: Given two integers tomatoSlices and cheeseSlices. The ingredients of different burgers are as follows: Jumbo Burger: 4 tomato slices and 1 chees
        阅读全文
            
摘要:题目如下: Tic-tac-toe is played by two players A and B on a 3 x 3 grid. Here are the rules of Tic-Tac-Toe: Players take turns placing characters into empt
        阅读全文
            
摘要:题目如下: You are given a string s containing lowercase letters and an integer k. You need to : First, change some characters of s to other lowercase Engl
        阅读全文
            
摘要:最近遇到这么一个场景,需要用SQL从表里取出版本号小于'10.2'的所有数据。目前表中以存在的数据中,版本号有两种格式,一个是'X.Y',另一个是'X'。对于SQL Server来说,其没有string split函数,所以处理起来会麻烦一点。 首先,我想到是用parsename函数,分别用'X.Y
        阅读全文
            
摘要:题目如下: A tree rooted at node 0 is given as follows: The number of nodes is nodes; The value of the i-th node is value[i]; The parent of the i-th node i
        阅读全文
            
摘要:题目如下: (This problem is an interactive problem.) On the sea represented by a cartesian plane, each ship is located at an integer point, and each intege
        阅读全文
            
摘要:题目如下: Given a sorted list of disjoint intervals, each interval intervals[i] = [a, b] represents the set of real numbers x such that a <= x < b. We rem
        阅读全文
            
摘要:题目如下: A decimal number can be converted to its Hexspeak representation by first converting it to an uppercase hexadecimal string, then replacing all o
        阅读全文
            
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号