Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:
其他好文 时间:
2015-12-11 06:51:19
阅读次数:
117
https://leetcode.com/problems/maximum-depth-of-binary-tree/Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along ...
分类:
其他好文 时间:
2015-12-10 23:47:24
阅读次数:
159
Linux下 build code 时,要做 -lssl, -lcrypto 的链接,出现类似下面的错误:/usr/bin/ld: cannot find -lcrypto/usr/bin/ld: cannot find -lssl原因是没有找到 libssl.soyum info openssl,...
分类:
其他好文 时间:
2015-12-10 21:55:26
阅读次数:
183
1. 查找所有".h"文件find /PATH -name "*.h"2. 查找所有".h"文件中的含有"helloworld"字符串的文件find/PATH -name "*.h" -exec grep -in "helloworld" {} \;find /PATH -name "*.h" | ...
分类:
其他好文 时间:
2015-12-10 19:23:28
阅读次数:
158
题目:Given a positive integern, find the least number of perfect square numbers (for example,1, 4, 9, 16, ...) which sum ton.For example, givenn=12, ret...
分类:
其他好文 时间:
2015-12-10 13:02:13
阅读次数:
138
var stuNoargs = $(ele).parent().parent().find("input[type='text']").attr("class","stunoclass");$(ele).parent().parent().find("span").attr("class","stu...
分类:
Web程序 时间:
2015-12-09 22:59:29
阅读次数:
228
场景:1.在存储数据时有时接口需要合并字符串值,并以某些特殊字符来合并部分,到需要的时候再分割它。如一些数值,人名等。2.C++有strtok,stringstream和find函数来实现分割。可以根据情况调用。#include #include #include #include #include...
分类:
其他好文 时间:
2015-12-09 21:36:02
阅读次数:
140
一:find简介Linux下find命令在目录结构中搜索文件,并执行指定的操作。Linux下find命令提供了相当多的查找条件,功能很强大。由于find具有强大的功能,所以它的选项也很多,其中大部分选项都值得我们花时间来了解一下。即使系统中含有网络文件系统(NFS),find命令在该文件系统..
分类:
其他好文 时间:
2015-12-09 20:00:23
阅读次数:
325
取字符串中的数字,假如数据在A列,提取公式为 =LOOKUP(9^9,--MID(A1,MIN(FIND({1,2,3,4,5,6,7,8,9,0},A1&5^19)),ROW($1:$99))) 如果字符串中只有汉字和数字,提取公式为 =MIDB(A1,SEARCHB("?",A1),2*LEN(...
分类:
其他好文 时间:
2015-12-09 19:31:52
阅读次数:
410
If you have a need for thousands of rules, for example if you have a lot of clients or computers, all with different QoS specifications, you may find ...
分类:
其他好文 时间:
2015-12-09 19:20:21
阅读次数:
198