上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 64 下一页
摘要: 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 阅读全文
posted @ 2023-09-01 04:35 CNoodle 阅读(35) 评论(0) 推荐(0)
摘要: You are given the customer visit log of a shop represented by a 0-indexed string customers consisting only of characters 'N' and 'Y': if the ith chara 阅读全文
posted @ 2023-08-30 02:35 CNoodle 阅读(64) 评论(0) 推荐(0)
摘要: You are given a map of a server center, represented as a m * n integer matrix grid, where 1 means that on that cell there is a server and 0 means that 阅读全文
posted @ 2023-08-24 01:22 CNoodle 阅读(37) 评论(0) 推荐(0)
摘要: You are given two strings start and target, both of length n. Each string consists only of the characters 'L', 'R', and '_' where: The characters 'L' 阅读全文
posted @ 2023-08-22 02:15 CNoodle 阅读(76) 评论(0) 推荐(0)
摘要: There are n friends that are playing a game. The friends are sitting in a circle and are numbered from 1 to n in clockwise order. More formally, movin 阅读全文
posted @ 2023-08-16 02:45 CNoodle 阅读(48) 评论(0) 推荐(0)
摘要: You are given a 0-indexed integer array nums. You have to partition the array into one or more contiguous subarrays. We call a partition of the array  阅读全文
posted @ 2023-08-14 13:07 CNoodle 阅读(68) 评论(0) 推荐(0)
摘要: You are given an m x n integer array grid where grid[i][j] could be: 1 representing the starting square. There is exactly one starting square. 2 repre 阅读全文
posted @ 2023-08-04 00:49 CNoodle 阅读(55) 评论(0) 推荐(0)
摘要: Given two strings s1 and s2, return the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = "sea", s2 = "eat" Out 阅读全文
posted @ 2023-08-01 04:38 CNoodle 阅读(43) 评论(0) 推荐(0)
摘要: You are given an integer array nums. Two players are playing a game with this array: player 1 and player 2. Player 1 and player 2 take turns, with pla 阅读全文
posted @ 2023-07-29 01:21 CNoodle 阅读(71) 评论(0) 推荐(0)
摘要: You are given a floating-point number hour, representing the amount of time you have to reach the office. To commute to the office, you must take n tr 阅读全文
posted @ 2023-07-27 00:58 CNoodle 阅读(58) 评论(0) 推荐(0)
摘要: You are given a stream of points on the X-Y plane. Design an algorithm that: Adds new points from the stream into a data structure. Duplicate points a 阅读全文
posted @ 2023-07-26 05:47 CNoodle 阅读(151) 评论(0) 推荐(0)
摘要: You are given an array nums of positive integers. In one operation, you can choose any number from nums and reduce it to exactly half the number. (Not 阅读全文
posted @ 2023-07-25 01:01 CNoodle 阅读(46) 评论(0) 推荐(0)
摘要: Given an integer n, return a list of all possible full binary trees with n nodes. Each node of each tree in the answer must have Node.val == 0. Each e 阅读全文
posted @ 2023-07-23 11:25 CNoodle 阅读(56) 评论(0) 推荐(0)
摘要: You are given a 0-indexed integer array nums of length n. You are initially standing at index 0. You can jump from index i to index j where i < j if: 阅读全文
posted @ 2023-07-21 03:00 CNoodle 阅读(330) 评论(0) 推荐(0)
摘要: You are given n tables represented with two arrays names and columns, where names[i] is the name of the ith table and columns[i] is the number of colu 阅读全文
posted @ 2023-07-21 02:21 CNoodle 阅读(99) 评论(0) 推荐(0)
摘要: You have a keypad with 9 buttons, numbered from 1 to 9, each mapped to lowercase English letters. You can choose which characters each button is match 阅读全文
posted @ 2023-07-20 09:03 CNoodle 阅读(321) 评论(0) 推荐(0)
摘要: You are given two 0-indexed integer arrays jobs and workers of equal length, where jobs[i] is the amount of time needed to complete the ith job, and w 阅读全文
posted @ 2023-07-20 07:49 CNoodle 阅读(179) 评论(0) 推荐(0)
摘要: You are given a 0-indexed string s consisting of only lowercase English letters. In one operation, you can change any character of s to any other char 阅读全文
posted @ 2023-07-20 07:18 CNoodle 阅读(98) 评论(0) 推荐(0)
摘要: You are given a 0-indexed integer array nums. Swaps of adjacent elements are able to be performed on nums. A valid array meets the following condition 阅读全文
posted @ 2023-07-20 06:58 CNoodle 阅读(205) 评论(0) 推荐(0)
摘要: You are given an array nums consisting of positive integers. You can perform the following operation on the array any number of times: Choose any two  阅读全文
posted @ 2023-07-20 04:26 CNoodle 阅读(105) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 64 下一页