记录点滴。 1 /* 2 2015.6 HT 3 ACM Work_9 4 5 */ 6 7 #include 8 #include 9 #include 10 using namespace std; 11 12 13 /* 14 Can you find i...
分类:
其他好文 时间:
2015-06-13 11:16:45
阅读次数:
111
Given an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference betweennums[i]andnums[j]is at mo...
分类:
其他好文 时间:
2015-06-13 01:10:27
阅读次数:
505
题目链接 题目要求: Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring. For...
分类:
其他好文 时间:
2015-06-12 23:52:34
阅读次数:
120
1. Question求最长回文子串Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists...
分类:
其他好文 时间:
2015-06-12 23:49:08
阅读次数:
228
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2015-06-12 23:40:02
阅读次数:
121
用了find/root/-typef-execrm-rf{}\;这个命令之后,系统重新登录时或重启之后,PS1可能会变成:-bash-4.1#。解决方法如下:第一种方法:cp/etc/skel/.bashrc/root/cp/etc/skel/.bash_profile/root/。这种方法是最好的,因为/etc/skel是最原始的数据,每次新创建用户时,用户下..
分类:
其他好文 时间:
2015-06-12 22:27:52
阅读次数:
146
Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at leas...
分类:
其他好文 时间:
2015-06-12 22:09:13
阅读次数:
145
Problem Description:Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceb...
分类:
其他好文 时间:
2015-06-12 22:04:43
阅读次数:
103
1.you need to find the length of the sequence in an array, between the first and the second occurance of a specified number. /* 你需要找到一个数组中 指定元素 第一次 出现...
分类:
编程语言 时间:
2015-06-12 19:01:28
阅读次数:
144
当在github上看到一个很好的开源库,想集成时,开源库的readme都说让在工程下的build.gradle中的 dependencies 添加类似语句 compile ‘com.XXX:XXX:1.0.0‘ 然后同步,发现报错了 Android Studio 1.X.X - Failed ...
分类:
移动开发 时间:
2015-06-12 17:35:19
阅读次数:
222