xinyu04

导航

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) 编辑