MichaelZhou_
MichaelZhou_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
MichaelZhou_的博客
全部文章
(共3篇)
题解 | #坐标移动#
#include <algorithm> #include <deque> #include <functional> #include <iostream> #include <set> #include <string> #...
2024-06-29
0
147
题解 | #字符编码#
这道题算最短的编码,因此我们采用构造哈夫曼树。首先我们先解析出一行字符串里每个字符的出现次数,用std::map 进行保存。然后我们使用队列来构造哈夫曼树。 #include <algorithm> #include <cmath> #include <cstdint&...
2023-01-12
0
420
题解 | #棋子翻转#
只需要获得当前位置的上下左右棋子的值取反就行了 class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param A int整型vector<ve...
2023-01-11
0
309