摘要:
##优先队列 特殊的“队列”,取出元素的顺序是依照元素的优先权的大小,而不是先进先出。 优先队列会进行自动排序 #include<iostream> #include<queue> using namespace std; int main() { priority_queue <int> q;// 阅读全文
##优先队列 特殊的“队列”,取出元素的顺序是依照元素的优先权的大小,而不是先进先出。 优先队列会进行自动排序 #include<iostream> #include<queue> using namespace std; int main() { priority_queue <int> q;// 阅读全文
posted @ 2022-02-15 23:26
帝宝单推人!
阅读(33)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; struct node { int val; struct node *left; struct node *right; }; //LL旋转 node *singleLeftRotation(node *root) { 阅读全文
#include<iostream> using namespace std; struct node { int val; struct node *left; struct node *right; }; //LL旋转 node *singleLeftRotation(node *root) { 阅读全文
posted @ 2022-02-15 10:53
帝宝单推人!
阅读(157)
评论(0)
推荐(0)

浙公网安备 33010602011771号