随笔分类 -  LeetCode

摘要:Meeting Rooms III You are given an integer n. There are n rooms numbered from 0 to n1. You are given a 2D integer array meetings where meet 阅读全文
posted @ 2022-09-05 23:19 onlyblues 阅读(89) 评论(0) 推荐(0) 编辑
摘要:Number of Ways to Reach a Position After Exactly k Steps You are given two positive integers startPos and endPos . Initially, you are standing at posi 阅读全文
posted @ 2022-09-05 20:16 onlyblues 阅读(72) 评论(0) 推荐(0) 编辑
摘要:Maximum Number of Robots Within Budget You have n robots. You are given two 0-indexed integer arrays, chargeTimes and runningCosts , both of length 阅读全文
posted @ 2022-09-04 21:47 onlyblues 阅读(52) 评论(0) 推荐(0) 编辑
摘要:Subarray With Elements Greater Than Varying Threshold You are given an integer array nums and an integer threshold. Find any subarray of nums of 阅读全文
posted @ 2022-08-29 20:19 onlyblues 阅读(56) 评论(0) 推荐(0) 编辑
摘要:Build a Matrix With Conditions You are given a positive integer k. You are also given: a 2D integer array rowConditions of size n where $rowCond 阅读全文
posted @ 2022-08-28 15:41 onlyblues 阅读(57) 评论(0) 推荐(0) 编辑
摘要:Largest Palindromic Number You are given a string num consisting of digits only. Return the largest palindromic integer (in the form of a string) th 阅读全文
posted @ 2022-08-21 22:00 onlyblues 阅读(28) 评论(0) 推荐(0) 编辑
摘要:Maximum Segment Sum After Removals You are given two 0-indexed integer arrays nums and removeQueries, both of length n. For the ith query, 阅读全文
posted @ 2022-08-21 19:07 onlyblues 阅读(50) 评论(0) 推荐(0) 编辑
摘要:Time Needed to Rearrange a Binary String You are given a binary string s. In one second, all occurrences of 01 are simultaneously replaced with 10 . 阅读全文
posted @ 2022-08-21 16:19 onlyblues 阅读(51) 评论(0) 推荐(0) 编辑
摘要:Count Special Integers We call a positive integer special if all of its digits are distinct. Given a positive integer n, return the number of specia 阅读全文
posted @ 2022-08-15 21:31 onlyblues 阅读(39) 评论(0) 推荐(0) 编辑
摘要:Construct Smallest Number From DI String You are given a 0-indexed string pattern of length n consisting of the characters 'I' meaning increasing and 阅读全文
posted @ 2022-08-15 16:59 onlyblues 阅读(79) 评论(0) 推荐(0) 编辑
摘要:Max Chunks To Make Sorted II You are given an integer array arr. We split arr into some number of chunks (i.e., partitions), and individually sort eac 阅读全文
posted @ 2022-08-15 12:45 onlyblues 阅读(41) 评论(0) 推荐(0) 编辑

Web Analytics
点击右上角即可分享
微信分享提示