05 2023 档案
摘要:The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an integer n, return al
阅读全文
摘要:You are given an array of equal-length strings words. Assume that the length of each string is n. Each string words[i] can be converted into a differe
阅读全文
摘要:There is a set of n items. You are given two integer arrays values and labels where the value and the label of the ith element are values[i] and label
阅读全文
摘要:You have n tiles, where each tile has one letter tiles[i] printed on it. Return the number of possible non-empty sequences of letters you can make usi
阅读全文
摘要:Given a directed acyclic graph, with n vertices numbered from 0 to n-1, and an array edges where edges[i] = [fromi, toi] represents a directed edge fr
阅读全文
摘要:You are given two arrays of strings that represent two inclusive events that happened on the same day, event1 and event2, where: event1 = [startTime1,
阅读全文
摘要:You are given a 0-indexed 2D integer array questions where questions[i] = [pointsi, brainpoweri]. The array describes the questions of an exam, where
阅读全文
摘要:Given an integer array nums that does not contain any zeros, find the largest positive integer k such that -k also exists in the array. Return the pos
阅读全文
摘要:You are given a string of length 5 called time, representing the current time on a digital clock in the format "hh:mm". The earliest possible time is
阅读全文
摘要:You are given the string croakOfFrogs, which represents a combination of the string "croak" from different frogs, that is, multiple frogs can croak at
阅读全文
摘要: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 'a', '
阅读全文
摘要:In the world of Dota2, there are two parties: the Radiant and the Dire. The Dota2 senate consists of senators coming from two parties. Now the Senate
阅读全文
摘要:Given three integers x, y, and bound, return a list of all the powerful integers that have a value less than or equal to bound. An integer is powerful
阅读全文
摘要:Given a string s, determine if it is valid. A string s is valid if, starting with an empty string t = "", you can transform t into s after performing
阅读全文

浙公网安备 33010602011771号