xiongqiangcs
xiongqiangcs
全部文章
题解
归档
标签
去牛客网
登录
/
注册
xiongqiangcs的博客
全部文章
/ 题解
(共23篇)
c++ only 4 lines
class Solution { public: struct Less { bool operator()(int a, int b) { return stoi(to_string(a)+to_string(b)) < stoi(to_str...
2020-04-30
0
628
c++
class Solution { public: int FindGreatestSumOfSubArray(vector<int> array) { if (array.size() <= 0) return INT_MIN; int ma...
2020-04-30
0
609
c++
利用辅助空间,时间复杂度O(nlogk) class Solution { public: vector<int> GetLeastNumbers_Solution(vector<int> input, int k) { vector<int&g...
2020-04-30
0
615
c++
class Solution { public: int GetUglyNumber_Solution(int index) { if (index <= 0) return 0; vector<int> ugly(index); ...
2020-04-29
6
915
c++
/* struct TreeLinkNode { int val; struct TreeLinkNode *left; struct TreeLinkNode *right; struct TreeLinkNode *next; TreeLinkNode(i...
2020-04-28
0
594
c++
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ...
2020-04-28
0
509
c++
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ...
2020-04-28
0
459
c++
class Solution { public: //Insert one char from stringstream void Insert(char ch) { hashmap[ch] ++; data+=ch; } //...
2020-04-28
0
613
c++
class Solution { public: int Add(int num1, int num2) { int result = 0, carry = 0; do { result = num1 ^ num2; ...
2020-04-28
0
643
c++
class Solution { public: int Sum_Solution(int n) { int sum = n; sum && (sum+=Sum_Solution(n-1)); return sum; }...
2020-04-27
0
706
首页
上一页
1
2
3
下一页
末页