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 阅读全文
posted @ 2023-05-30 13:06 CNoodle 阅读(164) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-05-25 06:45 CNoodle 阅读(66) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-05-24 00:55 CNoodle 阅读(27) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-05-19 14:39 CNoodle 阅读(46) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-05-18 14:05 CNoodle 阅读(85) 评论(0) 推荐(0)
摘要:You are given two arrays of strings that represent two inclusive events that happened on the same day, event1 and event2, where: event1 = [startTime1, 阅读全文
posted @ 2023-05-17 06:33 CNoodle 阅读(75) 评论(0) 推荐(0)
摘要:You are given a 0-indexed 2D integer array questions where questions[i] = [pointsi, brainpoweri]. The array describes the questions of an exam, where 阅读全文
posted @ 2023-05-13 05:41 CNoodle 阅读(97) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-05-13 02:23 CNoodle 阅读(83) 评论(0) 推荐(0)
摘要: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  阅读全文
posted @ 2023-05-09 10:51 CNoodle 阅读(68) 评论(0) 推荐(0)
摘要:You are given the string croakOfFrogs, which represents a combination of the string "croak" from different frogs, that is, multiple frogs can croak at 阅读全文
posted @ 2023-05-06 01:33 CNoodle 阅读(111) 评论(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 'a', ' 阅读全文
posted @ 2023-05-06 00:35 CNoodle 阅读(214) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-05-05 06:25 CNoodle 阅读(195) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-05-04 01:02 CNoodle 阅读(38) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-05-04 00:19 CNoodle 阅读(52) 评论(0) 推荐(0)