摘要: 本人部分博客导航(整理中) Deep Learning学习: 深度学习实践系列之--身份证上汉字及数字识别系统的实现(下) 深度学习实践系列之--身份证上汉字及数字识别系统的实现(上) 解决编译caffe2遇到的坑 Caffe学习系列(四)之--训练自己的模型 Caffe学习系列(三)Docker安 阅读全文
posted @ 2017-08-28 10:54 华不摇曳 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 描述 题目:给定一个数组,和一个值k,数组分成k段。要求这k段子段和最大值最小。求出这个值。 解析 (1)暴力搜索 n n-1M[n, k] = min { max { M[j, k-1], ∑ Ai } } j=1 i=j n表示数组长度,k表示数组分成几段。初始化条件: (2)动态规划 递归算法 阅读全文
posted @ 2019-04-01 17:07 华不摇曳 阅读(2240) 评论(0) 推荐(0) 编辑
摘要: 归并排序 归并排序是另一种不同的排序方法,因为归并排序使用了递归分治的思想,所以理解起来比较容易。其基本思想是,先递归划分子问题,然后合并结果。把待排序列看成由两个有序的子序列,然后合并两个子序列,然后把子序列看成由两个有序序列。。。。。倒着来看,其实就是先两两合并,然后四四合并。。。最终形成有序序 阅读全文
posted @ 2019-02-26 17:37 华不摇曳 阅读(1657) 评论(0) 推荐(0) 编辑
摘要: 排列组合类的问题,可以使用经典递归方法和分段迭代法 描述 Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not cont 阅读全文
posted @ 2018-10-26 08:59 华不摇曳 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 在一些求字串含有固定字符最短串,含有不同字符最长子串等问题中,利用 vector<int> map(128, 0)可以解决 题一:最短给定子串 Minimum Window Substring Minimum Window Substring Minimum Window Substring Min 阅读全文
posted @ 2018-10-22 15:02 华不摇曳 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 之前转载过一篇STL的sort方法底层详解的博客:https://www.cnblogs.com/ygh1229/articles/9806398.html 但是我们在开发中会根据自己特定的应用,有新的排序需求,比如下面这道题,当只有0,1,2这三个数字时的排序,我们就可以自己写定制版的排序算法 描 阅读全文
posted @ 2018-10-18 11:30 华不摇曳 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 今天看到有人对《STL源码剖析》这本书的评论,涉及到了编程与艺术的话题,我很赞同其中的一些观点,比如: 其实还有很多编程艺术类的书,譬如:《编程之美》《编程珠玑》等讲述编程思维的书籍,这些书籍会给程序员一些启发,技术只是有限的,但是我们的思维却是不断拓展的,这也是我在刷Leetcode,写算法,不断 阅读全文
posted @ 2018-10-17 17:31 华不摇曳 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 前言 这里总结了两道表格移动的问题,分别是:Unique Paths 和 题一:Unique Paths 描述 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below 阅读全文
posted @ 2018-10-16 17:02 华不摇曳 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 描述 Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations perm 阅读全文
posted @ 2018-10-16 16:30 华不摇曳 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 描述: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: 阅读全文
posted @ 2018-10-11 11:25 华不摇曳 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: 描述 You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, wh 阅读全文
posted @ 2018-10-10 14:52 华不摇曳 阅读(916) 评论(0) 推荐(0) 编辑