12 2023 档案
摘要:Alice has n balloons arranged on a rope. You are given a 0-indexed string colors where colors[i] is the color of the ith balloon. Alice wants the rope
阅读全文
摘要:You are given two 0-indexed integer arrays player1 and player2, that represent the number of pins that player 1 and player 2 hit in a bowling game, re
阅读全文
摘要:Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west, respectively. You start at t
阅读全文
摘要:Given the root of a perfect binary tree, reverse the node values at each odd level of the tree. For example, suppose the node values at level 3 are [2
阅读全文
摘要:You are given a 0-indexed m x n binary matrix grid. A 0-indexed m x n difference matrix diff is created with the following procedure: Let the number o
阅读全文
摘要:You are given a string s consisting of lowercase English letters, and you are allowed to perform operations on it. In one operation, you can replace a
阅读全文
摘要:You are given a string num, representing a large integer. Return the largest-valued odd integer (as a string) that is a non-empty substring of num, or
阅读全文
摘要:Hercy wants to save money for his first car. He puts money in the Leetcode bank every day. He starts by putting in $1 on Monday, the first day. Every
阅读全文
摘要:You are given an integer n, the number of teams in a tournament that has strange rules: If the current number of teams is even, each team gets paired
阅读全文
摘要:You are given a string num representing a large integer. An integer is good if it meets the following conditions: It is a substring of num with length
阅读全文
摘要:On a 2D plane, there are n points with integer coordinates points[i] = [xi, yi]. Return the minimum time in seconds to visit all the points in the ord
阅读全文
摘要:You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character can only be
阅读全文

浙公网安备 33010602011771号