cocolor
cocolor
全部文章
分类
题解(33)
归档
标签
去牛客网
登录
/
注册
cocolor的博客
全部文章
(共33篇)
题解 | #从尾到头打印链表#
c++三种解法 顺序输入再反转 class Solution { public: vector<int> printListFromTailToHead(ListNode* head) { vector<int> ans; while(...
2021-05-11
0
312
题解 | #替换空格#
c++ class Solution { public: string replaceSpace(string s) { string ans=""; for(char c:s){ if(c==' ') ans+="%20"; ...
2021-05-11
2
374
题解 | #二维数组中的查找#
暴力解法 class Solution { public: bool Find(int target, vector<vector<int> > array) { if(array.size()==0)return false; for...
2021-05-11
0
437
首页
上一页
1
2
3
4
下一页
末页