题目链接:https://leetcode.com/problems/perfect-squares/
题目:
Given a positive integer n, find the least number of perfect square numbers (for example, 1,
4, 9, 16, ...) which sum to n.
For examp...
分类:
其他好文 时间:
2016-05-30 15:34:19
阅读次数:
156
题目链接:https://leetcode.com/problems/longest-substring-without-repeating-characters/
题目:
Given a string, find the length of the longest substring without repeating characters.
Examples:
Give...
分类:
其他好文 时间:
2016-05-30 15:33:33
阅读次数:
195
题目链接:https://leetcode.com/problems/maximum-product-subarray/
题目:
Find the contiguous subarray within an array (containing at least one number) which has the largest product.
For example, give...
分类:
其他好文 时间:
2016-05-30 15:32:29
阅读次数:
139
我们经常在linux要查找某个文件,但不知道放在哪里了,可以使用下面的一些命令来搜索:Which 查看可执行文件的位置。whereis 查看文件的位置。locate 配合数据库查看文件位置。Find 实际搜寻硬盘查询文件名称whichwhich命令的作用是,在PATH变量指定的路径中,搜索某个系统命令的位置,并且返回第一个搜索结果。也就是说,使用which 命令,就可以看到某个系统命令...
分类:
系统相关 时间:
2016-05-30 15:03:34
阅读次数:
295
题目链接:https://leetcode.com/problems/longest-palindromic-substring/
题目:
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and ...
分类:
其他好文 时间:
2016-05-30 14:53:40
阅读次数:
150
SimHash algorithm, introduced by Charikar and is patented by Google. Simhash 5 steps: Tokenize, Hash, Weigh Values, Merge, Dimensionality Reduction to ...
分类:
其他好文 时间:
2016-05-30 14:25:27
阅读次数:
190
原文网址:http://stackoverflow.com/questions/25508735/cant-find-referenced-method-android-app-remoteinput-getremoteinputs-in-cl I am kind of stuck from pas ...
分类:
移动开发 时间:
2016-05-30 12:54:23
阅读次数:
368
填坑 支付宝填坑是每个接入支付宝必经之路,下面是我接入支付宝遇到的问题汇总,希望大家在接入的路上少一点弯路 问题1. Util/base64.h:63:21: Cannot find interface declaration for ‘NSObject’, superclass of ‘Base6 ...
分类:
微信 时间:
2016-05-30 10:09:11
阅读次数:
534
1、正则与通配符 linux中的通配符是用来匹配文件名的,其匹配是完全匹配。只支持通配符则命令有ls find cp等命令 正则是用来匹配字符串的,是包含匹配。只要搜索的内容在某个字符串中,那么改字符串则被认为符合条件,支持的命令有grep awk sed。 2、规则 空白行的匹配,我们先看一下有空 ...
分类:
系统相关 时间:
2016-05-30 01:03:59
阅读次数:
234
Linux下使用Shell处理文本时最常用的工具: find、grep、xargs、sort、uniq、tr、cut、paste、wc、sed、awk; 提供的例子和参数都是最常用和最为实用的; 我对shell脚本使用的原则是命令单行书写,尽量不要超过2行; 如果有更为复杂的任务需求,还是考虑pyt ...
分类:
系统相关 时间:
2016-05-29 21:25:51
阅读次数:
246