11 2019 档案
摘要:题目如下: We have a list of bus routes. Each routes[i] is a bus route that the i-th bus repeats forever. For example if routes[0] = [1, 5, 7], this means 
        阅读全文
            
摘要:题目如下: Given many words, words[i] has weight i. Design a class WordFilter that supports one function, WordFilter.f(String prefix, String suffix). It wi
        阅读全文
            
摘要:题目如下: Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be
        阅读全文
            
摘要:题目如下: Given an array of strings products and a string searchWord. We want to design a system that suggests at most three product names from products a
        阅读全文
            
摘要:题目如下: You are given a map of a server center, represented as a m * n integer matrix grid, where 1 means that on that cell there is a server and 0 mean
        阅读全文
            
摘要:题目如下: On a plane there are n points with integer coordinates points[i] = [xi, yi]. Your task is to find the minimum time in seconds to visit all point
        阅读全文
            
摘要:题目如下: Given a 2D grid of size n * m and an integer k. You need to shift the grid k times. In one shift operation: Element at grid[i][j] becomes at gri
        阅读全文
            
摘要:题目如下: Given an array nums of integers, we need to find the maximum possible sum of elements of the array such that it is divisible by three. Example 1
        阅读全文
            
摘要:题目如下: Given a binary tree with the following rules: Now the binary tree is contaminated, which means all treeNode.val have been changed to -1. You nee
        阅读全文
            
摘要:题目如下: Given an array nums of integers, you can perform operations on the array. In each operation, you pick any nums[i] and delete it to earn nums[i] 
        阅读全文
            
摘要:题目如下: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a dee
        阅读全文
            
摘要:题目如下: 解题思路:动态规划。记dp[i] = v表示由i个人组成的圈子一共有v种握手的方法。对于一个由n个人组成的圈子,编号为0的人一共可以和编号为 (1,3,5....,n-1)的握手,这也很好理解,假设编号为0的人和编号为2的人握手,那么编号为1的人就被包在两人的连线的一侧,而同侧没有其他人
        阅读全文
            
摘要:题目如下: You are given some lists of regions where the first region of each list includes all other regions in that list. Naturally, if a region X contai
        阅读全文
            
摘要:题目如下: Given a list of pairs of equivalent words synonyms and a sentence text, Return all possible synonymous sentences sorted lexicographically. Examp
        阅读全文
            
摘要:题目如下: Design a Leaderboard class, which has 3 functions: Initially, the leaderboard is empty. Example 1: Constraints: 1 <= playerId, K <= 10000 It's g
        阅读全文
            
摘要:题目如下: Given an initial array arr, every day you produce a new array using the array of the previous day. On the i-th day, you do the following operati
        阅读全文
            
摘要:题目如下: Given an array nums of positive integers. Your task is to select some subset of nums, multiply each element by an integer and add all these numb
        阅读全文
            
摘要:题目如下: Given two integer arrays arr1 and arr2, return the minimum number of operations (possibly zero) needed to make arr1 strictly increasing. In one 
        阅读全文
            
摘要:题目如下: Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit. Example 1: Input
        阅读全文
            
摘要:题目如下: In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue. For now, suppose you are a
        阅读全文
            
摘要:题目如下: Given a list of words, list of single letters (might be repeating) and score of every character. Return the maximum score of any valid set of wo
        阅读全文
            
摘要:题目如下: Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4-directionally connected group of 0s and a closed island is an isl
        阅读全文
            
摘要:题目如下: Given the following details of a matrix with n columns and 2 rows : The matrix is a binary matrix, which means each element in the matrix can be
        阅读全文
            
摘要:题目如下: Given n and m which are the dimensions of a matrix initialized by zeros and given an array indices where indices[i] = [ri, ci]. For each pair of
        阅读全文
            
摘要:题目如下: We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each stri
        阅读全文
            
摘要:题目如下: Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any po
        阅读全文
            
摘要:题目如下: Given an array of integers nums and an integer k. A subarray is called nice if there are k odd numbers on it. Return the number of nice sub-arra
        阅读全文
            
摘要:题目如下: You are given two strings s1 and s2 of equal length consisting of letters "x" and "y" only. Your task is to make these two strings equal to each
        阅读全文
            
 
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号