这节课我们主要学习了String and Regular ExpressionsIntroduction of Strings Computer was used for numeric munipulation:1. Most programs are concerned more with st...
题目链接: HDU - 1501Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings....
分类:
其他好文 时间:
2015-04-19 00:57:26
阅读次数:
207
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".Analyse: Using XOR(^) to compute the result of ...
分类:
其他好文 时间:
2015-04-18 11:25:04
阅读次数:
105
Linux抓包工具
tcpdump –nn –i 网卡名 host 主机ip port 端口
-wfilename:把抓到的内容抓放到一个文件里面
可以通过strings看到文件里面的东西
-c数字:指定抓包的个数
-s0:可以抓取全部的包
tshark:也...
分类:
系统相关 时间:
2015-04-18 08:48:16
阅读次数:
246
1. shift + F6可以理解为F2的豪华重量版,不但可以重命名文件名,而且可以命名函数名,函数名可以搜索引用的文件,还可以重命名局部变量。还可以重命名标签名。在sublime text中有个类似的快捷键:ctrl+shift+d。
1. search in comments and strings
会搜索注释或变量内容。
2. search for text occurrences...
分类:
Web程序 时间:
2015-04-17 23:52:15
阅读次数:
394
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n...
分类:
其他好文 时间:
2015-04-17 23:42:10
阅读次数:
130
Write a function to find the longest common prefix string amongst an array of strings. 1 class Solution { 2 public: 3 string longestCommonPrefix(v...
分类:
其他好文 时间:
2015-04-16 21:20:24
阅读次数:
116
作用:在 OSX 图标下方显示 App 中文繁体或简体的名(系统自动选取)适用:XE7, XE8 for OSX操作:创建一个新工程。在工程目录下创建二个文件夹(zh_??.lproj)文件(InfoPlist.strings)及内容:zh_CN.lprojInfoPlist.stringsCFBu...
分类:
移动开发 时间:
2015-04-16 13:54:50
阅读次数:
159
将 mytracks 的代码合并到应用中,主要包括了一些service,工具类,图片,strings 等,没有合并activity。剔除了谷歌相关的代码,目前没有合并ant+ 的相关代码,后期需要加入。...
分类:
其他好文 时间:
2015-04-16 12:42:58
阅读次数:
113
题目:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest...
分类:
其他好文 时间:
2015-04-15 21:20:54
阅读次数:
101