哈夫曼树write up
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768#include <iostream>#include <vector>#include <queue>using namespace std;// 定义哈夫曼树节点结构体struct HuffmanNode { int weight; HuffmanNode* left; HuffmanNode* right; HuffmanNode(int w) : weight(w), left(nullptr), right(nullptr) {}};// 比较函数,用于优先队列struct Compare { bool operator()(HuffmanNode* a, HuffmanNode* b) {...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment







