llllmz

导航

2024年1月26日

KY188 哈夫曼树C++

摘要: 用(优先队列)小根堆,先构建哈夫曼树,然后在递归遍历输出WPL。 #include<iostream> #include<queue> using namespace std; struct node{ int data; struct node* left; struct node* right; 阅读全文

posted @ 2024-01-26 20:16 神奇的萝卜丝 阅读(30) 评论(0) 推荐(0)