03 2020 档案
摘要:题目如下: Given a m x n grid. Each cell of the grid represents a street. The street of grid[i][j] can be: 1 which means a street connecting the left cell 
        阅读全文
            
摘要:题目如下: Given an integer array nums, return the sum of divisors of the integers in that array that have exactly four divisors. If there is no such integ
        阅读全文
            
摘要:题目如下: Given two arrays of integers nums and index. Your task is to create target array under the following rules: Initially target array is empty. Fro
        阅读全文
            
摘要:题目如下: The power of an integer x is defined as the number of steps needed to transform x into 1 using the following steps: if x is even then x = x / 2 
        阅读全文
            
摘要:题目如下: A cinema has n rows of seats, numbered from 1 to n and there are ten seats in each row, labelled from 1 to 10 as shown in the figure above. Give
        阅读全文
            
摘要:题目如下: Given two integer arrays arr1 and arr2, and the integer d, return the distance value between the two arrays. The distance value is defined as th
        阅读全文
            
摘要:题目如下: There are n engineers numbered from 1 to n and two arrays: speed and efficiency, where speed[i] and efficiency[i] represent the speed and effici
        阅读全文
            
摘要:题目如下: Design a stack which supports the following operations. Implement the CustomStack class: CustomStack(int maxSize) Initializes the object with ma
        阅读全文
            
摘要:题目如下: Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order. A lucky number is an element of the matrix such t
        阅读全文
            
摘要:题目如下: Given an undirected tree consisting of n vertices numbered from 1 to n. A frog starts jumping from the vertex 1. In one second, the frog jumps f
        阅读全文
            
摘要:题目如下: A company has n employees with a unique ID for each employee from 0 to n - 1. The head of the company has is the one with headID. Each employee 
        阅读全文
            
摘要:题目如下: There is a room with n bulbs, numbered from 1 to n, arranged in a row from left to right. Initially, all the bulbs are turned off. At moment k (
        阅读全文
            
摘要:题目如下: Given an integer n, return a string with n characters such that each character in such string occurs an odd number of times. The returned string
        阅读全文
            
摘要:题目如下: Given a binary tree root and a linked list with head as the first node. Return True if all the elements in the linked list starting from the hea
        阅读全文
            
摘要:题目如下: In a special ranking system, each voter gives a rank from highest to lowest to all teams participated in the competition. The ordering of teams 
        阅读全文
            
摘要:题目如下: Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count t
        阅读全文
            
摘要:题目如下: Given an integer array of digits, return the largest multiple of three that can be formed by concatenating some of the given digits in any order
        阅读全文
            
摘要:题目如下: Given an integer num, find the closest two integers in absolute difference whose product equals num + 1 or num + 2. Return the two integers in a
        阅读全文
            
摘要:题目如下: You have n binary tree nodes numbered from 0 to n - 1 where node i has two children leftChild[i] and rightChild[i], return true if and only if a
        阅读全文
            
摘要:题目如下: Write a program to count the number of days between two dates. The two dates are given as strings, their format is YYYY-MM-DD as shown in the ex
        阅读全文
            
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号