- 博客(11)
- 收藏
- 关注
原创 预训练模型 百度云下载 VGG_VOC0712_SSD
https://github.com/balancap/SSD-Tensorflow中SSD-300 VGG-based, SSD-300 VGG-based,SSD-512 VGG-based从google drive转存文件到百度云。包括:VGG_VOC0712_SSD_300x300_ft_iter_120000.ckptVGG_VOC0712_SSD_300x300_ite...
2019-06-05 17:44:49
5213
6
原创 comparision: C++ vs java
C++ Java Create instance Obj a(); Obj* a = new a(); Obj a = new a(); Create array int a[3]; int a[] = {1, 2,...
2018-07-30 21:33:50
282
原创 leetcode-contest-94
contest 链接:题目1:判断两个tree的所有leaf组成的sequence数组是否相等。 解法:找到所有的leaf题目链接:https://leetcode.com/contest/weekly-contest-94/problems/leaf-similar-trees//** * Definition for a binary tree node. * s...
2018-07-22 12:24:41
204
原创 字符串扩增
请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。链接:https://www.nowcoder.com/questionTerminal/4060ac7e3e404ad1a894ef3e17650423来源:牛客网/*问题1:替换字符串,是在原来的字符串上做替换,还是新开辟一个字符串做...
2018-03-17 23:20:59
274
原创 二叉树与分治法-Leetcode-257
题目链接:https://leetcode.com/submissions/detail/134406356//** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : ...
2018-03-17 15:26:23
321
原创 二叉树和分治法-Leetcode-104
题目链接:https://leetcode.com/problems/maximum-depth-of-binary-tree/description//** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * ...
2018-03-17 15:24:49
326
原创 二叉树与分治法-LeetCode-144
题目链接: https://leetcode.com/problems/binary-tree-preorder-traversal/description/class Solution {public: vector<int> preorderTraversal(TreeNode* root) { vector<int> res...
2018-03-17 15:21:40
278
原创 BFS-LeetCode-46
题目链接: https://leetcode.com/problems/permutations/description///与subset差不多//1. 返回数组长度要一致//2. 重复的数字要剔除掉class Solution {public: vector<vector<int>> permute(vector<int>& nums) { ...
2018-03-17 15:14:44
184
原创 BFS-Leetcode-28 : KMP
题目链接:https://leetcode.com/problems/implement-strstr/description/以下列舉暴力法和KMP//time: O(n*m) ,space 1//最简单的方法,每一个枚举一遍//注意为空,长度不符合 特殊情况,输入[1,2,3],要求[1,2,3,4] //注意需要枚举的长度//更快的方法:rabin card , KMP ...
2018-03-17 15:13:17
131
原创 二分法-LeetCode-153
题目链接:https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/description/代码实现:int findMin(vector<int>& nums) { if(nums.size()==0) return -1 ; int start = 0 , end = n...
2018-03-17 15:10:44
245
原创 二分法-LeetCode-278
题目链接 https://leetcode.com/problems/first-bad-version/description/思路分析:这是一道最基础的,经典的利用二分法的题目。思考模式应该分一下三个步骤:1.数据的类型是,前一半符合条件,后一半不服后,模型是 OOXX;2.我们的目标是找到一个X,使得它满足它的前一个是O(或者空);3.每当我们找到一个X时,更新end的位置为X代码实现如下:...
2018-03-17 15:08:22
142
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人