![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
牛客网
文章平均质量分 60
CoderForge
昨日之深渊,今日之浅谈。路虽远,行则将至;事虽难,难则可成。
展开
-
牛客网剑指Offer——树
目录前言正文 前言 正文原创 2021-10-21 21:28:40 · 109 阅读 · 0 评论 -
牛客网刷题2
目录前言正文1. 复杂链表的复制 前言 正文 1. 复杂链表的复制 题目 code /* struct RandomListNode { int label; struct RandomListNode *next, *random; RandomListNode(int x) : label(x), next(NULL), random(NULL) { } }; */ class Solution { public: unordered_m原创 2021-07-01 21:36:03 · 169 阅读 · 0 评论 -
牛客网刷题1
目录前言正文最小的K个数参考 前言 正文 最小的K个数 code: 全排列 class Solution { public: vector<int> GetLeastNumbers_Solution(vector<int> input, int k) { vector<int> res; if(k>input.size()||input.empty()||k<=0) return res;原创 2021-05-12 21:28:29 · 327 阅读 · 0 评论 -
牛客网剑指Offer——链表
目录前言正文1. 二维数组中的查找参考 前言 正文 1. 二维数组中的查找 题目 code class Solution { public: bool Find(int target, vector<vector<int> > array) { //思路:从最左下开始查找,大于该target就往右走,小于就往上走。总能找到的 int rows = array.size(); int cols = array[0].size();原创 2021-09-06 20:29:34 · 115 阅读 · 0 评论