09 2020 档案
摘要:题目如下: There are 3n piles of coins of varying size, you and your friends will take piles of coins as follows: In each step, you will choose any 3 piles
        阅读全文
            
摘要:题目如下: Given an integer n and an integer array rounds. We have a circular track which consists of n sectors labeled from 1 to n. A marathon will be hel
        阅读全文
            
摘要:题目如下: Given a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1]
        阅读全文
            
摘要:题目如下: Given a parentheses string s containing only the characters '(' and ')'. A parentheses string is balanced if: Any left parenthesis '(' must have
        阅读全文
            
摘要:题目如下: Given two strings s and t, your goal is to convert s into t in k moves or less. During the ith (1 <= i <= k) move you can: Choose any index j (1
        阅读全文
            
摘要:题目如下: Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth positive integer that is missing f
        阅读全文
            
摘要:题目如下: Given an integer array arr of distinct integers and an integer k. A game will be played between the first two elements of the array (i.e. arr[0]
        阅读全文
            
摘要:题目如下: Given an array of integers arr, and three integers a, b and c. You need to find the number of good triplets. A triplet (arr[i], arr[j], arr[k]) 
        阅读全文
            
摘要:题目如下: There is a room with n bulbs, numbered from 0 to n-1, arranged in a row from left to right. Initially all the bulbs are turned off. Your task is
        阅读全文
            
摘要:题目如下: Given a string s and an integer array indices of the same length. The string s will be shuffled such that the character at the ith position move
        阅读全文
            
摘要:题目如下: You are given a string s, a split is called good if you can split s into 2 non-empty strings p and q where its concatenation is equal to s and t
        阅读全文
            
摘要:题目如下: Given an array of integers arr. Return the number of sub-arrays with odd sum. As the answer may grow large, the answer must be computed modulo 1
        阅读全文
            
摘要:题目如下: Given two non-negative integers low and high. Return the count of odd numbers between low and high (inclusive). Example 1: Input: low = 3, high 
        阅读全文
            
摘要:题目如下: Given numBottles full water bottles, you can exchange numExchange empty water bottles for one full water bottle. The operation of drinking a ful
        阅读全文
            
摘要:题目如下: You are given an undirected weighted graph of n nodes (0-indexed), represented by an edge list where edges[i] = [a, b] is an undirected edge con
        阅读全文
            
摘要:题目如下: Given a binary string s (a string consisting only of '0' and '1's). Return the number of substrings with all characters 1's. Since the answer ma
        阅读全文
            
摘要:题目如下: Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input:
        阅读全文
            
摘要:题目如下: Given an array nums, you are allowed to choose one element of nums and change it by any value in one move. Return the minimum difference between
        阅读全文
            
摘要:题目如下: Given the array nums consisting of n positive integers. You computed the sum of all non-empty continous subarrays from the array and then sort t
        阅读全文
            
摘要:题目如下: Given a date string in the form Day Month Year, where: Day is in the set {"1st", "2nd", "3rd", "4th", ..., "30th", "31st"}. Month is in the set 
        阅读全文
            
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号