< 文件 #here files<< 多行字串 #here documents<<< 单行字串 #here strings大约可以先这么理解尤其是在一下情况使用:while read A ; do ……done<<<"here strings" 以及cut-d""-f 2 <<<"345" 参考链接...
                            
                            
                                分类:
其他好文   时间:
2014-12-17 00:07:55   
                                阅读次数:
178
                             
                    
                        
                            
                            
                                问题描述:
Compare two version numbers version1 and
version1.
If version1 > version2 return 1, if version1 version2 return -1, otherwise return 0.
You may assume that the version strings are non-empt...
                            
                            
                                分类:
其他好文   时间:
2014-12-16 19:16:58   
                                阅读次数:
133
                             
                    
                        
                            
                            
                                Write a function to find the longest common prefix string amongst an array of strings.
#include
#include
#include
char *longestCommonPrefix(char *strs[],int n)
{
    int i,j,k;
    char *res=(...
                            
                            
                                分类:
其他好文   时间:
2014-12-15 20:24:22   
                                阅读次数:
174
                             
                    
                        
                            
                            
                                Given two strings S and T, determine if they are both one edit distance apart.Analysis:Must be exactly one distance apart. Not the same.Solution: 1 pu...
                            
                            
                                分类:
其他好文   时间:
2014-12-15 06:31:20   
                                阅读次数:
149
                             
                    
                        
                            
                            
                                DescriptionGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think...
                            
                            
                                分类:
其他好文   时间:
2014-12-14 21:14:42   
                                阅读次数:
152
                             
                    
                        
                            
                            
                                下载文件后,file命令看一下是ELF32程序,strings命令发现程序被UPX加壳了。upx-dsnake-final.exe脱壳后扔到IDA里面分析,主函数发现调用signal注册了若干个回调函数:特别是几个38h、32h、34h、36h。实际上是定义了4个控制贪吃蛇行动的游戏按键。但显然就这个程序,按对应的键..
                            
                            
                                分类:
其他好文   时间:
2014-12-14 07:13:06   
                                阅读次数:
279
                             
                    
                        
                            
                            
                                Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
                            
                            
                                分类:
其他好文   时间:
2014-12-14 00:38:30   
                                阅读次数:
161
                             
                    
                        
                            
                            
                                Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large ...
                            
                            
                                分类:
其他好文   时间:
2014-12-13 23:20:04   
                                阅读次数:
179
                             
                    
                        
                            
                            
                                AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.首先解释一下什么是anagrams:在不考虑顺序的情况下,...
                            
                            
                                分类:
其他好文   时间:
2014-12-13 15:08:14   
                                阅读次数:
154
                             
                    
                        
                            
                            
                                STL笔记(5)条款49:学习破解有关STL的编译器诊断信息条款49:学习破解有关STL的编译器诊断信息用一个特定的大小定义一个vector是完全合法的,vectorv(10);//建立一个大小为10的vector而string在很多方面像vector,所以你可能希望可以这么做:strings(10...
                            
                            
                                分类:
其他好文   时间:
2014-12-13 00:46:36   
                                阅读次数:
356