06 2020 档案

摘要:题目如下: Given an integer n and an integer start. Define an array nums where nums[i] = start + 2*i (0-indexed) and n == nums.length. Return the bitwise X 阅读全文
posted @ 2020-06-22 14:26 seyjs 阅读(366) 评论(0) 推荐(0)
摘要:题目如下: Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: a 阅读全文
posted @ 2020-06-22 14:22 seyjs 阅读(286) 评论(0) 推荐(0)
摘要:题目如下: Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running sum of nums. Example 1: Inp 阅读全文
posted @ 2020-06-22 14:18 seyjs 阅读(585) 评论(0) 推荐(0)
摘要:题目如下: There are n cities numbered from 0 to n-1 and n-1 roads such that there is only one way to travel between two different cities (this network for 阅读全文
posted @ 2020-06-22 14:11 seyjs 阅读(371) 评论(0) 推荐(0)
摘要:题目如下: Given a rectangular cake with height h and width w, and two arrays of integers horizontalCuts and verticalCuts where horizontalCuts[i] is the di 阅读全文
posted @ 2020-06-22 14:04 seyjs 阅读(373) 评论(0) 推荐(0)
摘要:题目如下: Given the array of integers nums, you will choose two different indices i and j of that array. Return the maximum value of (nums[i]-1)*(nums[j]- 阅读全文
posted @ 2020-06-22 14:01 seyjs 阅读(355) 评论(0) 推荐(0)
摘要:题目如下: Given a binary string s and an integer k. Return True if every binary code of length k is a substring of s. Otherwise, return False. Example 1: 阅读全文
posted @ 2020-06-13 09:40 seyjs 阅读(334) 评论(0) 推荐(0)
摘要:题目如下: Given two integer arrays of equal length target and arr. In one step, you can select any non-empty sub-array of arr and reverse it. You are allo 阅读全文
posted @ 2020-06-05 09:28 seyjs 阅读(351) 评论(0) 推荐(0)
摘要:题目如下: Given a binary tree where node values are digits from 1 to 9. A path in the binary tree is said to be pseudo-palindromic if at least one permuta 阅读全文
posted @ 2020-06-04 22:32 seyjs 阅读(376) 评论(0) 推荐(0)
摘要:题目如下: Given a string s and an integer k. Return the maximum number of vowel letters in any substring of s with length k. Vowel letters in English are  阅读全文
posted @ 2020-06-04 22:25 seyjs 阅读(328) 评论(0) 推荐(0)
摘要:题目如下: Given a sentence that consists of some words separated by a single space, and a searchWord. You have to check if searchWord is a prefix of any w 阅读全文
posted @ 2020-06-04 22:24 seyjs 阅读(351) 评论(0) 推荐(0)
摘要:题目如下: Given the array favoriteCompanies where favoriteCompanies[i] is the list of favorites companies for the ith person (indexed from 0). Return the 阅读全文
posted @ 2020-06-04 22:13 seyjs 阅读(240) 评论(0) 推荐(0)
摘要:题目如下: Given a sentence text (A sentence is a string of space-separated words) in the following format: First letter is in upper case. Each word in tex 阅读全文
posted @ 2020-06-04 22:02 seyjs 阅读(298) 评论(0) 推荐(0)
摘要:题目如下: Given two integer arrays startTime and endTime and given an integer queryTime. The ith student started doing their homework at the time startTim 阅读全文
posted @ 2020-06-04 22:00 seyjs 阅读(322) 评论(0) 推荐(0)
摘要:题目如下: Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X. Retur 阅读全文
posted @ 2020-06-04 09:47 seyjs 阅读(356) 评论(0) 推荐(0)
摘要:题目如下: Given an integer n, return a list of all simplified fractions between 0 and 1 (exclusive) such that the denominator is less-than-or-equal-to n. 阅读全文
posted @ 2020-06-04 09:43 seyjs 阅读(246) 评论(0) 推荐(0)
摘要:题目如下: Given a string s, the power of the string is the maximum length of a non-empty substring that contains only one unique character. Return the pow 阅读全文
posted @ 2020-06-04 09:41 seyjs 阅读(326) 评论(0) 推荐(0)
摘要:题目如下: Given an array of integers arr. We want to select three indices i, j and k where (0 <= i < j <= k < arr.length). Let's define a and b as follows 阅读全文
posted @ 2020-06-04 09:32 seyjs 阅读(286) 评论(0) 推荐(0)
摘要:题目如下: Given an array target and an integer n. In each iteration, you will read a number from list = {1,2,3..., n}. Build the target array using the fo 阅读全文
posted @ 2020-06-04 06:24 seyjs 阅读(142) 评论(0) 推荐(0)
摘要:题目如下: Given an array nums of 0s and 1s and an integer k, return True if all 1's are at least k places away from each other, otherwise return False. Ex 阅读全文
posted @ 2020-06-04 06:18 seyjs 阅读(297) 评论(0) 推荐(0)
摘要:题目如下: You are given the array paths, where paths[i] = [cityAi, cityBi] means there exists a direct path going from cityAi to cityBi. Return the destin 阅读全文
posted @ 2020-06-03 22:41 seyjs 阅读(345) 评论(0) 推荐(0)
摘要:题目如下: Given two strings: s1 and s2 with the same size, check if some permutation of string s1 can break some permutation of string s2 or vice-versa (i 阅读全文
posted @ 2020-06-03 22:36 seyjs 阅读(379) 评论(0) 推荐(0)
摘要:题目如下: You are given an integer num. You will apply the following steps exactly two times: Pick a digit x (0 <= x <= 9). Pick another digit y (0 <= y < 阅读全文
posted @ 2020-06-03 22:32 seyjs 阅读(344) 评论(0) 推荐(0)
摘要:题目如下: Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has. For each kid check 阅读全文
posted @ 2020-06-03 22:22 seyjs 阅读(303) 评论(0) 推荐(0)
摘要:题目如下: There are several cards arranged in a row, and each card has an associated number of points The points are given in the integer array cardPoints 阅读全文
posted @ 2020-06-03 22:14 seyjs 阅读(520) 评论(0) 推荐(0)
摘要:题目如下: Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and r 阅读全文
posted @ 2020-06-01 17:55 seyjs 阅读(359) 评论(0) 推荐(0)
摘要:题目如下: Given the string croakOfFrogs, which represents a combination of the string "croak" from different frogs, that is, multiple frogs can croak at t 阅读全文
posted @ 2020-06-01 17:48 seyjs 阅读(316) 评论(0) 推荐(0)
摘要:题目如下: Given the array orders, which represents the orders that customers have done in a restaurant. More specifically orders[i]=[customerNamei,tableNu 阅读全文
posted @ 2020-06-01 06:24 seyjs 阅读(251) 评论(0) 推荐(0)
摘要:题目如下: Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You have to find a permutatio 阅读全文
posted @ 2020-06-01 06:14 seyjs 阅读(175) 评论(0) 推荐(0)