摘要: 描述 Given a collection of distinct integers, return all possible permutations. Example: 思路一:递归 利用STL的函数swap()来交换数组的元素 思路二 next_permutation方法 利用STL的库函数: 阅读全文
posted @ 2018-10-09 16:52 华不摇曳 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 描述 Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where t 阅读全文
posted @ 2018-10-07 19:11 华不摇曳 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 描述: Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime 阅读全文
posted @ 2018-09-29 22:31 华不摇曳 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 描述 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: 思路 借鉴Merge Two Sorted Lists的解决思路,对两个数组先 阅读全文
posted @ 2018-09-28 15:01 华不摇曳 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 描述 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is 阅读全文
posted @ 2018-09-27 16:07 华不摇曳 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given a linked list, remove the n-th node from the end of list and return its head. Example: Note: Given n will always be valid. Follow up: Coul 阅读全文
posted @ 2018-09-20 10:54 华不摇曳 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: 首先我们要从源码克隆caffe2的库: 执行下载过程会报这样的错: 这是因为这个github网址找不到,打开网页,果然404. 解决方法如下: 继续上次报错点继续下载 然后你会发现又报了一个错: 因为到目前为止,facebook已将caffe2集成在pytorch里,https://github.c 阅读全文
posted @ 2018-07-09 11:01 华不摇曳 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 相关概念: 一棵二叉搜索树(BST)是以一棵二叉树来组织的,可以用链表数据结构来表示,其中,每一个结点就是一个对象,一般地,包含数据内容key和指向孩子(也可能是父母)的指针属性。如果某个孩子结点不存在,其指针属性值为空(NIL)。二叉搜索树中的关键字key的存储方式总是满足二叉搜索树的性质:设x是 阅读全文
posted @ 2018-03-13 22:15 华不摇曳 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 本人部分博客导航(整理中) Deep Learning学习: 深度学习实践系列之--身份证上汉字及数字识别系统的实现(下) 深度学习实践系列之--身份证上汉字及数字识别系统的实现(上) 解决编译caffe2遇到的坑 Caffe学习系列(四)之--训练自己的模型 Caffe学习系列(三)Docker安 阅读全文
posted @ 2017-08-28 10:54 华不摇曳 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 描述: (1)翻转一个链表 (1)翻转一个链表 (1)翻转一个链表 样例 给出一个链表1->2->3->null,这个翻转后的链表为3->2->1->null ********************************************************************** 阅读全文
posted @ 2017-08-23 15:41 华不摇曳 阅读(370) 评论(0) 推荐(0) 编辑