上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 64 下一页
摘要: You are given an array nums of n positive integers. You can perform two types of operations on any element of the array any number of times: If the el 阅读全文
posted @ 2022-02-20 09:39 CNoodle 阅读(329) 评论(0) 推荐(0)
摘要: We have two special characters: The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). G 阅读全文
posted @ 2022-02-20 06:03 CNoodle 阅读(90) 评论(0) 推荐(0)
摘要: You are given two integers, x and y, which represent your current location on a Cartesian grid: (x, y). You are also given an array points where each  阅读全文
posted @ 2022-02-15 12:01 CNoodle 阅读(325) 评论(0) 推荐(0)
摘要: Given an integer n, return a list of all simplified fractions between 0 and 1 (exclusive) such that the denominator is less-than-or-equal-to n. You ca 阅读全文
posted @ 2022-02-10 11:36 CNoodle 阅读(98) 评论(0) 推荐(0)
摘要: You are given an array of unique integers salary where salary[i] is the salary of the ith employee. Return the average salary of employees excluding t 阅读全文
posted @ 2022-02-07 14:39 CNoodle 阅读(249) 评论(0) 推荐(0)
摘要: Given two non-negative integers low and high. Return the count of odd numbers between low and high (inclusive). Example 1: Input: low = 3, high = 7 Ou 阅读全文
posted @ 2022-02-07 14:02 CNoodle 阅读(253) 评论(0) 推荐(0)
摘要: Given a 0-indexed string word and a character ch, reverse the segment of word that starts at index 0 and ends at the index of the first occurrence of 阅读全文
posted @ 2022-02-06 07:15 CNoodle 阅读(133) 评论(2) 推荐(0)
摘要: You are given an integer array nums. The unique elements of an array are the elements that appear exactly once in the array. Return the sum of all the 阅读全文
posted @ 2022-02-06 05:59 CNoodle 阅读(122) 评论(0) 推荐(0)
摘要: You are given an array rectangles where rectangles[i] = [li, wi] represents the ith rectangle of length li and width wi. You can cut the ith rectangle 阅读全文
posted @ 2022-02-04 14:58 CNoodle 阅读(192) 评论(0) 推荐(0)
摘要: A string s is nice if, for every letter of the alphabet that s contains, it appears both in uppercase and lowercase. For example, "abABB" is nice beca 阅读全文
posted @ 2022-02-01 02:03 CNoodle 阅读(566) 评论(0) 推荐(0)
摘要: You are playing a game that contains multiple characters, and each of the characters has two main properties: attack and defense. You are given a 2D i 阅读全文
posted @ 2022-01-29 00:10 CNoodle 阅读(368) 评论(0) 推荐(0)
摘要: You have a list arr of all integers in the range [1, n] sorted in a strictly increasing order. Apply the following algorithm on arr: Starting from lef 阅读全文
posted @ 2022-01-09 16:22 CNoodle 阅读(153) 评论(0) 推荐(0)
摘要: You are given a 0-indexed 1-dimensional (1D) integer array original, and two integers, m and n. You are tasked with creating a 2-dimensional (2D) arra 阅读全文
posted @ 2022-01-01 14:23 CNoodle 阅读(150) 评论(0) 推荐(0)
摘要: 今天刷了一题之后,LeetCode 官方给了我一个 2021 年的年度勋章以鼓励我今年超过 300 天有提交。 希望每个刷题的你都一起加油! 阅读全文
posted @ 2021-12-28 10:24 CNoodle 阅读(515) 评论(0) 推荐(0)
摘要: Given a Tic-Tac-Toe board as a string array board, return true if and only if it is possible to reach this board position during the course of a valid 阅读全文
posted @ 2021-12-10 13:35 CNoodle 阅读(85) 评论(0) 推荐(0)
摘要: Given an n x n grid containing only values 0 and 1, where 0 represents water and 1 represents land, find a water cell such that its distance to the ne 阅读全文
posted @ 2021-12-05 14:36 CNoodle 阅读(163) 评论(0) 推荐(0)
摘要: You are starving and you want to eat food as quickly as possible. You want to find the shortest path to arrive at any food cell. You are given an m x 阅读全文
posted @ 2021-12-05 12:39 CNoodle 阅读(1244) 评论(0) 推荐(0)
摘要: Given an integer array nums and an integer k, modify the array in the following way: choose an index i and replace nums[i] with -nums[i]. You should a 阅读全文
posted @ 2021-12-04 01:26 CNoodle 阅读(79) 评论(0) 推荐(0)
摘要: Given an array of integer arrays arrays where each arrays[i] is sorted in strictly increasing order, return an integer array representing the longest 阅读全文
posted @ 2021-12-01 14:28 CNoodle 阅读(206) 评论(0) 推荐(0)
摘要: You are given an m x n binary matrix matrix. You can choose any number of columns in the matrix and flip every cell in that column (i.e., Change the v 阅读全文
posted @ 2021-11-21 15:00 CNoodle 阅读(105) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 64 下一页