xinyu04

导航

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页

2022年8月25日 #

[Oracle] LeetCode 1010 Pairs of Songs With Total Durations Divisible by 60

摘要: You are given a list of songs where the ith song has a duration of time[i] seconds. Return the number of pairs of songs for which their total duration 阅读全文

posted @ 2022-08-25 17:05 Blackzxy 阅读(9) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 1161 Maximum Level Sum of a Binary Tree

摘要: Given the root of a binary tree, the level of its root is 1, the level of its children is 2, and so on. Return the smallest level x such that the sum 阅读全文

posted @ 2022-08-25 15:49 Blackzxy 阅读(14) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 1326 Minimum Number of Taps to Open to Water a Garden

摘要: There is a one-dimensional garden on the x-axis. The garden starts at the point 0 and ends at the point n. (i.e The length of the garden is n). There 阅读全文

posted @ 2022-08-25 05:40 Blackzxy 阅读(15) 评论(0) 推荐(0) 编辑

2022年8月24日 #

[Oracle] LeetCode 453 Minimum Moves to Equal Array Elements

摘要: Given an integer array nums of size n, return the minimum number of moves required to make all array elements equal. In one move, you can increment n 阅读全文

posted @ 2022-08-24 15:45 Blackzxy 阅读(11) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 696 Count Binary Substrings

摘要: Given a binary string s, return the number of non-empty substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these 阅读全文

posted @ 2022-08-24 06:11 Blackzxy 阅读(9) 评论(0) 推荐(0) 编辑

2022年8月23日 #

[Oracle] LeetCode 735. Asteroid Collision

摘要: We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign r 阅读全文

posted @ 2022-08-23 17:32 Blackzxy 阅读(14) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 316 Remove Duplicate Letters 单调栈

摘要: Given a string s, remove duplicate letters so that every letter appears once and only once. You must make sure your result is the smallest in lexicogr 阅读全文

posted @ 2022-08-23 16:06 Blackzxy 阅读(5) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 1802 Maximum Value at a Given Index in a Bounded Array

摘要: You are given three positive integers: n, index, and maxSum. You want to construct an array nums (0-indexed) that satisfies the following conditions: 阅读全文

posted @ 2022-08-23 06:20 Blackzxy 阅读(15) 评论(0) 推荐(0) 编辑

[Google] LeetCode 1610 Maximum Number of Visible Points 极角排序

摘要: You are given an array points, an integer angle, and your location, where location = [posx, posy] and points[i] = [xi, yi] both denote integral coordi 阅读全文

posted @ 2022-08-23 02:52 Blackzxy 阅读(21) 评论(0) 推荐(0) 编辑

2022年8月22日 #

[Google] LeetCode 1937 Maximum Number of Points with Cost

摘要: You are given an m x n integer matrix points (0-indexed). Starting with 0 points, you want to maximize the number of points you can get from the matri 阅读全文

posted @ 2022-08-22 05:15 Blackzxy 阅读(26) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页