特立独行MVP
特立独行MVP
全部文章
算法
c++(13)
LeetCode(8)
剑指offer(19)
技巧(10)
面试(5)
归档
标签
去牛客网
登录
/
注册
Forever 24
十步杀一人 千里不留行
全部文章
/ 算法
(共26篇)
Round C 2019 - Kick Start 2019 Circuit Board
#include <iostream> #include <string> #include <vector> #include <unordered_map> #include <list> #include <limits.h&g...
2019-05-28
3
385
kick start 2019 round A Parcels
#include <iostream> #include <string> #include <vector> #include <unordered_map> #include <list> #include <limits.h&g...
2019-05-18
3
372
重建二叉树
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NUL...
2018-12-22
3
376
86. Partition List
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solu...
2018-12-22
3
433
234. Palindrome Linked List
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solu...
2018-12-22
2
419
222. Count Complete Tree Nodes
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), r...
2018-12-22
3
397
二叉树后序遍历的简单实现
实现二叉树的后序遍历 #include "head.cpp" struct Node { Node* left; Node* right; int val; Node(int v,Node* l,Node* r):val(v),left(l),right(r){} }...
2018-12-22
3
473
OJ RuntimeError常见原因
RuntimeError常见出错的原因可能有以下几种: 1、数组开得太小了,导致访问到了不该访问的内存区域 2、发生除零错误 3、大数组定义在函数内,导致程序栈区耗尽 4、指针用错了,导致访问到不该访问的内存区域 5、还有可能是程序抛出了未接收的异常 最经常的就是你使用c++数组的访问越...
2018-12-03
3
601
dijkstra解题代码
#include <iostream> #include <string> #include <stdio.h> #include <string.h> #include <vector> #include <ctime> #i...
2018-12-03
3
391
笔试模板
#include <iostream> #include <string> #include <stdio.h> #include <string.h> #include <vector> #include <ctime> #i...
2018-10-15
4
546
首页
上一页
1
2
3
下一页
末页