xiongqiangcs
xiongqiangcs
全部文章
分类
题解(23)
归档
标签
去牛客网
登录
/
注册
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
626
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
612
c++
class Solution { public: int GetUglyNumber_Solution(int index) { if (index <= 0) return 0; vector<int> ugly(index); ...
2020-04-29
6
914
c++
/* struct TreeLinkNode { int val; struct TreeLinkNode *left; struct TreeLinkNode *right; struct TreeLinkNode *next; TreeLinkNode(i...
2020-04-28
0
592
c++
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ...
2020-04-28
0
505
c++
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ...
2020-04-28
0
457
c++
class Solution { public: //Insert one char from stringstream void Insert(char ch) { hashmap[ch] ++; data+=ch; } //...
2020-04-28
0
610
c++
class Solution { public: int Add(int num1, int num2) { int result = 0, carry = 0; do { result = num1 ^ num2; ...
2020-04-28
0
641
c++
class Solution { public: int Sum_Solution(int n) { int sum = n; sum && (sum+=Sum_Solution(n-1)); return sum; }...
2020-04-27
0
702
首页
上一页
1
2
3
下一页
末页