LeetCode刷题记192-Linked List(链表)
503. 下一个更大元素 II
class Solution {
class PQ {
PQ next;
int id;
public PQ(int id) {
this.id = id;
}
}
public int[] nextGreaterElements(int[] nums) {
PQ top = null;
int[] ans = new int[num
原创
2021-03-06 11:34:47 ·
109 阅读 ·
0 评论