rekord
rekord
全部文章
题解
归档
标签
去牛客网
登录
/
注册
rekord的博客
全部文章
/ 题解
(共12篇)
题解 | #最大公约数#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求出a、b的最大公约数。 * @param a int * @param b int ...
C++
2021-10-09
0
417
题解 | #最大数#
class Solution { public: /** * 最大数 * @param nums int整型vector * @return string字符串 */ static bool cmp(string x,string y){ ...
C++
2021-10-08
0
420
题解 | #数组中只出现一次的数(其它数出现k次)#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param arr intvector * @param k int * @...
C++
2021-10-06
0
274
题解 | #判断一个链表是否为回文结构#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 the he...
C++
2021-10-03
0
323
题解 | #判断一个链表是否为回文结构#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 the he...
C++
2021-10-02
0
341
题解 | #判断一个链表是否为回文结构#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 the he...
C++
2021-10-01
0
312
题解 | #求平方根#
class Solution { public: /** * * @param x int整型 * @return int整型 */ int mysqrt(int x) { // write code here ...
C++
2021-09-28
0
303
题解 | #连续子数组的最大和#
class Solution { public: int FindGreatestSumOfSubArray(vector<int> array) { int ans=array[0]; for(int i=1;i<array.size();...
C++
2021-09-26
0
327
题解 | #买卖股票的最好时机#
class Solution { public: /** * * @param prices int整型vector * @return int整型 */ int maxProfit(vector<int>& price...
C++
2021-09-25
0
290
题解 | #子数组的最大累加和问题#
暴力出奇迹! class Solution { public: /** * max sum of the subarray * @param arr int整型vector the array * @return int整型 */ int ma...
C++
2021-09-24
0
440
首页
上一页
1
2
下一页
末页