10 2021 档案
摘要:Given an array of integers nums and an integer k. A continuous subarray is called nice if there are k odd numbers on it. Return the number of nice sub
阅读全文
摘要: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 other
阅读全文
摘要:If you got the following error when run the sam deploy : CREATE_FAILED AWS::Lambda::Function <YourFunctionName> Resource handler Function returned mes
阅读全文
摘要:Given a rectangle of size n x m, return the minimum number of integer-sided squares that tile the rectangle. Example 1: Input: n = 2, m = 3 Output: 3
阅读全文
摘要:You are given an array of strings arr. A string s is formed by the concatenation of a subsequence of arr that has unique characters. Return the maximu
阅读全文
摘要:If you got the following warning: The elevation provided <Paper elevation={24}> is not available in the theme. Please make sure that `theme.shadows[24
阅读全文
摘要:Given 2 integers n and start. Your task is return any permutation p of (0,1,2.....,2^n -1) such that : p[0] = start p[i] and p[i+1] differ by only one
阅读全文
摘要:Given a callable function f(x, y) with a hidden formula and a value z, reverse engineer the formula and return *all positive integer pairs x and y whe
阅读全文
摘要:We have n jobs, where every job is scheduled to be done from startTime[i] to endTime[i], obtaining a profit of profit[i]. You're given the startTime,
阅读全文
摘要:You are given a string containing only 4 kinds of characters 'Q', 'W', 'E' and 'R'. A string is said to be balancedif each of its characters appears n
阅读全文
摘要:If the CodeBuild failed with following issue: Err:4 https://deb.nodesource.com/node_14.x focal Release Certificate verification failed: The certificat
阅读全文
摘要:Given a list of folders folder, return the folders after removing all sub-folders in those folders. You may return the answer in any order. If a folde
阅读全文
摘要:When you run: hexo clean && hexo g You might get the following error: err: [Error: ENFILE: file table overflow, open '/<YourFilePath>/<YourFile>'] { e
阅读全文
摘要:You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight
阅读全文
摘要:n passengers board an airplane with exactly n seats. The first passenger has lost the ticket and picks a seat randomly. But after that, the rest of pa
阅读全文