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...
分类:
其他好文 时间:
2015-02-03 21:02:01
阅读次数:
155
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-02-03 16:46:32
阅读次数:
112
1、基础实例
代码如下
bootstrap按钮组
Left
Middle
Right
效果图
按钮工具栏
代码如下
bootstrap按钮组
按钮 1
按钮 ...
分类:
其他好文 时间:
2015-02-02 21:32:42
阅读次数:
119
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:
其他好文 时间:
2015-02-02 17:53:55
阅读次数:
165
本题的思路是二分查找,关键是怎么用二分查找。通过middle值和数组尾部的值比较,可以确定start-Middle和middle-end,这两部分那一部分是有序的,有序的数组是可以用二分查找的。class Solution {public: int search(int A[], int n,...
分类:
其他好文 时间:
2015-02-01 16:02:15
阅读次数:
193
题目:Who's in the MiddleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2938 Accepted Submission(s): 1109 Problem DescriptionFJ is surveying his herd...
分类:
编程语言 时间:
2015-01-29 22:38:26
阅读次数:
235
在Android TextView中有个内容过长加省略号的属性,即ellipsize,用法如下:在xml中:android:ellipsize="end" 省略号在结尾android:ellipsize="start" 省略号在开头android:ellipsize="middle" ...
分类:
移动开发 时间:
2015-01-27 12:48:47
阅读次数:
190
1.基本概念传统的网络服务程序,如:ftp、pop和telnet在本质上都是不安全的,因为它们在网络上用明文传送口令和数据,别有用心的人非常容易就可以截获这些口令和数据。而且,这些服务程序的安全验证方式也是有其弱点的,就是很容易受到“中间人”(man-in-the-middle)这种方式的攻击。所谓...
分类:
其他好文 时间:
2015-01-27 12:44:42
阅读次数:
150
如何清除图片下方出现几像素的空白间隙?方法1:img{display:block;}方法2:img{vertical-align:top;}除了top值,还可以设置为text-top | middle | bottom | text-bottom,甚至特定的和值都可以方法3:#test{font-s...
分类:
Web程序 时间:
2015-01-26 19:07:34
阅读次数:
219
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a...
分类:
其他好文 时间:
2015-01-25 22:20:42
阅读次数:
164