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 阅读全文
posted @ 2023-12-28 08:39 CNoodle 阅读(68) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-27 06:54 CNoodle 阅读(45) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-24 05:14 CNoodle 阅读(54) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-17 05:58 CNoodle 阅读(94) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-16 09:23 CNoodle 阅读(56) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-14 05:12 CNoodle 阅读(51) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-08 06:56 CNoodle 阅读(49) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-07 01:49 CNoodle 阅读(42) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-06 05:58 CNoodle 阅读(71) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-05 06:33 CNoodle 阅读(72) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-04 13:52 CNoodle 阅读(29) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-03 04:16 CNoodle 阅读(29) 评论(0) 推荐(0)