09 2023 档案
摘要:There are n people standing in a line labeled from 1 to n. The first person in the line is holding a pillow initially. Every second, the person holdin
阅读全文
摘要:On a 0-indexed 8 x 8 chessboard, there can be multiple black queens ad one white king. You are given a 2D integer array queens where queens[i] = [xQue
阅读全文
摘要:There is a knight on an n x n chessboard. In a valid configuration, the knight starts at the top-left cell of the board and visits every cell on the b
阅读全文
摘要:You are given two integers n and k and two integer arrays speed and efficiency both of length n. There are n engineers numbered from 1 to n. speed[i]
阅读全文
摘要:You are given an integer array ranks representing the ranks of some mechanics. ranksi is the rank of the ith mechanic. A mechanic with a rank r can re
阅读全文
摘要:You are given an integer array pref of size n. Find and return the array arr of size n that satisfies: pref[i] = arr[0] ^ arr[1] ^ ... ^ arr[i]. Note
阅读全文
摘要:You are given a 0-indexed string s and a dictionary of words dictionary. You have to break s into one or more non-overlapping substrings such that eac
阅读全文
摘要:You are playing a video game where you are defending your city from a group of n monsters. You are given a 0-indexed integer array dist of size n, whe
阅读全文
摘要: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 held on t
阅读全文
摘要:You are given a 0-indexed integer array forts of length n representing the positions of several forts. forts[i] can be -1, 0, or 1 where: -1 represent
阅读全文
摘要:You are given an integer total indicating the amount of money you have. You are also given two integers cost1 and cost2 indicating the price of a pen
阅读全文

浙公网安备 33010602011771号