上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页
摘要: 1.Python Python有2.X和3.X版本,可以在Windows系统下共存。方法为:Windows下Python多版本共存 可参考: Python及pycharm安装 安装Python后可在cmd窗口输入python,如果提示 ‘python’不是内部或外部命令,也不是可运行的程序或批处理文 阅读全文
posted @ 2018-07-18 14:53 eeeeeeee鹅 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1.DFS DFS是一个递归过程。(类似于二叉树的前序遍历) 参考:深度优先搜索(Depth-First-Search)精髓 2.BFS 可以理解为按层遍历,借助队列结构来实现。(类似于二叉树的层次遍历) 参考:[数据结构]广度优先搜索算法(Breadth-First-Search,BFS) 图的D 阅读全文
posted @ 2018-07-16 20:18 eeeeeeee鹅 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 原题网址:https://www.lintcode.com/problem/k-sum-ii/description 描述 Given n unique integers, number k (1<=k<=n) and target. Find all possible k integers whe 阅读全文
posted @ 2018-07-16 20:06 eeeeeeee鹅 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 原题网址:https://www.lintcode.com/problem/lowest-common-ancestor-of-a-binary-tree/description 描述 给定一棵二叉树,找到两个节点的最近公共父节点(LCA)。 最近公共祖先是两个节点的公共的祖先节点且具有最大深度。 阅读全文
posted @ 2018-07-15 21:35 eeeeeeee鹅 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 最近要做二分类问题,先Mark一下知识点和代码,参考:Opencv2.4.9源码分析——Boosting 以下内容全部转自此文 一 原理 二 opencv源码 1、先看构建Boosting的参数: 其中参数的含义为: boost_type表示Boosting算法的类型,可以是CvBoost::DIS 阅读全文
posted @ 2018-07-14 21:36 eeeeeeee鹅 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 原题网址:https://www.lintcode.com/problem/longest-common-substring/description 描述 给出两个字符串,找到最长公共子串,并返回其长度。 描述 描述 给出两个字符串,找到最长公共子串,并返回其长度。 给出两个字符串,找到最长公共子串 阅读全文
posted @ 2018-07-13 21:30 eeeeeeee鹅 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 原题网址:https://www.lintcode.com/problem/longest-common-prefix/description 描述 给k个字符串,求出他们的最长公共前缀(LCP) 描述 描述 给k个字符串,求出他们的最长公共前缀(LCP) 给k个字符串,求出他们的最长公共前缀(LC 阅读全文
posted @ 2018-07-12 22:55 eeeeeeee鹅 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 原题网址:https://www.lintcode.com/problem/longest-common-subsequence/description 描述 给出两个字符串,找到最长公共子序列(LCS),返回LCS的长度。 描述 描述 给出两个字符串,找到最长公共子序列(LCS),返回LCS的长度 阅读全文
posted @ 2018-07-11 16:51 eeeeeeee鹅 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 原题网址:https://www.lintcode.com/problem/longest-increasing-subsequence/description 描述 给定一个整数序列,找到最长上升子序列(LIS),返回LIS的长度。 描述 描述 给定一个整数序列,找到最长上升子序列(LIS),返回 阅读全文
posted @ 2018-07-09 17:27 eeeeeeee鹅 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 原题网址:https://www.lintcode.com/problem/find-peak-element/description 描述 你给出一个整数数组(size为n),其具有以下特点: 相邻位置的数字是不同的 A[0] < A[1] 并且 A[n - 2] > A[n - 1] 假定P是峰 阅读全文
posted @ 2018-07-08 17:14 eeeeeeee鹅 阅读(517) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页