- 博客(15)
- 收藏
- 关注
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 [LeetCode 37] Sudoku Solver
题目A sequence X_1, X_2, ..., X_n is fibonacci-like if:n >= 3X_i + X_{i+1} = X_{i+2} for all i + 2 <= n Given a strictly increasing array A of positive integers forming a sequence, find the...
2018-07-22 22:12:32
378
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 [LeetCode 470] Implement Rand10() Using Rand7()
题目Given a function rand7 which generates a uniform random integer in the range 1 to 7, write a function rand10 which generates a uniform random integer in the range 1 to 10.Do NOT use system’s Mat...
2018-07-19 00:40:41
772
原创 【C++】g++编译链接静态库的符号未定义问题和解决办法
问题描述:链接库:libsnlp_client.a 时提示大量未定义符号或引用:/home/work/wlh01/searchsuggest/git-suggest/suggest/scf/snlp_client/snlpservice_TokenizerService_ClientInterface.cpp:22: undefined reference to `scf::ProxyStan...
2019-02-28 14:15:34
3206
原创 [LeetCode 65] Valid Number
题目Validate if a given string can be interpreted as a decimal number.Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true" -90e3
2019-01-30 14:18:31
197
原创 [LeetCode 869] Reordered Power of 2
题目Starting with a positive integer N, we reorder the digits in any order (including the original order) such that the leading digit is not zero.Return true` if and only if we can do this in a way ...
2018-07-23 23:03:35
211
原创 [LeetCode 870] Advantage Shuffle
题目Given two arrays A and B of equal size, the advantage of A with respect to B is the number of indices i for which A[i] > B[i].Return any permutation of A that maximizes its advantage with res...
2018-07-21 22:43:27
369
原创 [LeetCode 871] Minimum Number of Refueling Stops
题目A car travels from a starting position to a destination which is target miles east of the starting position.Along the way, there are gas stations. Each stations[i] represents a gas station that...
2018-07-21 10:31:01
502
原创 [LeetCode 866] Smallest Subtree with all the Deepest Nodes
题目给定一个根为 root 的二叉树,每个结点的深度是它到根的最短距离。如果一个结点在整个树的任意结点之间具有最大的深度,则该结点是最深的。一个结点的子树是该结点加上它的所有后代的集合。返回能满足“以该结点为根的子树中包含所有最深的结点”这一条件的具有最大深度的结点。 示例:输入:[3,5,1,6,2,0,8,null,null,7,4]输出:[2,7,4]解释:...
2018-07-12 10:36:59
381
原创 [LeetCode 113] Path Sum II
题目给定一个二叉树和一个目标和,找到所有从根节点到叶子节点路径总和等于给定目标和的路径。 说明:叶子节点是指没有子节点的节点。 示例: 给定如下二叉树,以及目标和 sum = 22, 5 / \ 4 8 / / \ 11 13 4 / \ / \ 7 2 5 ...
2018-07-11 22:27:13
116
原创 Vim 替换操作中的特殊字符
Vim 替换操作心得最近用到最多的vim操作为替换操作,而且是全局替换操作,基本命令如下: :%s/target-expr/substitute-expr/g target-expr 为目标字符串,该字符串中如果有特殊字符,则需要转义,特殊字符集合如下: ‘$’, ‘.’, ‘[‘, ‘]’, ‘#’, ‘%’。substitute-expr 为替换的字符串,该字符串中如果有特殊字...
2018-05-22 23:17:46
5139
原创 【工作经验】centos7下编译gcc 7.2.0
1. 升级gcc到7.2wget 'http://mirrors-usa.go-parts.com/gcc/releases/gcc-7.2.0/gcc-7.2.0.tar.gz' // 下载gcc7.2源码包 tar xvf gcc-7.2.0.tar.gz // 解压缩,
2018-02-02 10:35:00
1240
原创 [C++]Vundle各种插件打造C++编辑器
Vundle安装安装部分均总结自官网:Vundle,如果想吃原汁原味的,请前往官网食用。依赖软件: Vim, git下载vundle,下载保存的路径与后面设置.vimrc相关,建议按提供的下载路径下载即可。git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim编辑~/
2018-01-14 00:05:28
1398
原创 初入tensorflow一览(2)
初入tensorflow一览(2)目录 - 1.简单程序运行详解 - 2.MNIST例子解析 —– 2.1输入源代码解析 —– 2.2MNIST训练流程解析 —– 2.3训练结果检验1.简单程序运行详解上一篇文章中安装了tensorflow之后,
2017-09-10 23:40:17
256
原创 初入Tensorflow一览(1)
1. 安装Tensorflow环境: macOS Sierra 10.12.62. 安装方式在tensorflow的官方指导下,利用virtualenv安装。3. 安装步骤3.1 安装virtualenv工具。 $ sudo pip install --upgrade virtualenv 3.2 为tensorflow创建环境目
2017-09-10 17:14:23
242
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人