wrdoct
wrdoct
全部文章
分类
复习(44)
面经(1)
题解(88)
归档
标签
去牛客网
登录
/
注册
wrdoct的博客
TA的专栏
127篇文章
14人订阅
华为题库题解
103篇文章
467人学习
互联网学习
24篇文章
9430人学习
全部文章
(共151篇)
题解 | #判断两个IP是否属于同一子网#
#include <bits/stdc++.h> using namespace std; string str2bin(int num){ if(num == 0) return "00000000"; //cout << "num = " &...
C++
2022-06-14
0
338
题解 | #判断两个IP是否属于同一子网#
来自专栏
#include <bits/stdc++.h> using namespace std; string str2bin(int num){ if(num == 0) return "00000000"; //cout << "num = " &...
C++
2022-06-14
0
272
题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
来自专栏
#include <bits/stdc++.h> using namespace std; void process(int num, double& distance, double& high){ double tmp = (double)num; ...
C++
2022-06-14
0
405
题解 | #整数与IP地址间的转换#
#include <bits/stdc++.h> using namespace std; void process(string strIP, long decIP, long& _decIP, string& _strIP){ stringstream i...
C++
2022-06-11
0
464
题解 | #整数与IP地址间的转换#
来自专栏
#include <bits/stdc++.h> using namespace std; void process(string strIP, long decIP, long& _decIP, string& _strIP){ stringstream i...
C++
2022-06-11
0
366
题解 | #兑换零钱(一)#
class Solution { public: /** * 最少货币数 * @param arr int整型vector the array * @param aim int整型 the target * @return int整型 */ ...
C++
2022-06-11
0
279
题解 | #兑换零钱(一)#
class Solution { public: /** * 最少货币数 * @param arr int整型vector the array * @param aim int整型 the target * @return int整型 */ ...
C++
2022-06-11
0
255
题解 | #买卖股票的最好时机(三)#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 两次交易所能获得的最大收益 * @param prices int整型vector 股票每一天的价格 * @re...
C++
2022-06-11
1
297
题解 | #买卖股票的最好时机(三)#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 两次交易所能获得的最大收益 * @param prices int整型vector 股票每一天的价格 * @re...
C++
2022-06-11
0
281
题解 | #把数字翻译成字符串#
class Solution { public: /** * 解码 * @param nums string字符串 数字串 * @return int整型 */ int solve(string nums) { // write...
C++
2022-06-11
0
308
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页