02 2023 档案
摘要: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
阅读全文
摘要:Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects
阅读全文
摘要:You are given a non-negative integer array nums. In one operation, you must: Choose a positive integer x such that x is less than or equal to the smal
阅读全文
摘要:You are given a series of video clips from a sporting event that lasted time seconds. These video clips can be overlapping with each other and have va
阅读全文
摘要:There is a one-dimensional garden on the x-axis. The garden starts at the point 0 and ends at the point n. (i.e The length of the garden is n). There
阅读全文
摘要:You are given an integer array ranks and a character array suits. You have 5 cards where the ith card has a rank of ranks[i] and a suit of suits[i]. T
阅读全文
摘要:Design a simplified version of Twitter where users can post tweets, follow/unfollow another user, and is able to see the 10 most recent tweets in the
阅读全文
摘要:There is a school that has classes of students and each class will be having a final exam. You are given a 2D integer array classes, where classes[i]
阅读全文
摘要:Given a 2D grid of 0s and 1s, return the number of elements in the largest square subgrid that has all 1s on its border, or 0 if such a subgrid doesn'
阅读全文
摘要:You are given a 0-indexed integer array nums. In one operation, you may do the following: Choose two integers in nums that are equal. Remove both inte
阅读全文
摘要:There is a tree (i.e., a connected, undirected graph with no cycles) structure country network consisting of n cities numbered from 0 to n - 1 and exa
阅读全文
摘要:On an alphabet board, we start at position (0, 0), corresponding to character board[0][0]. Here, board = ["abcde", "fghij", "klmno", "pqrst", "uvwxy",
阅读全文
摘要:We are given hours, a list of the number of hours worked per day for a given employee. A day is considered to be a tiring day if and only if the numbe
阅读全文
摘要:There is an authentication system that works with authentication tokens. For each session, the user will receive a new authentication token that will
阅读全文
摘要: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
阅读全文
摘要:LeetCode company workers use key-cards to unlock office doors. Each time a worker uses their key-card, the security system saves the worker's name and
阅读全文
摘要:You are given two string arrays, queries and dictionary. All words in each array comprise of lowercase English letters and have the same length. In on
阅读全文
摘要:You are given the root of a full binary tree with the following properties: Leaf nodes have either the value 0 or 1, where 0 represents False and 1 re
阅读全文
摘要:Two players play a turn based game on a binary tree. We are given the root of this binary tree, and the number of nodes n in the tree. n is odd, and e
阅读全文
摘要:You are given the strings key and message, which represent a cipher key and a secret message, respectively. The steps to decode message are as follows
阅读全文

浙公网安备 33010602011771号