题意:给出n个字符串,问每个字符串有多少个子串至少出现在z...
分类:
其他好文 时间:
2014-08-17 09:11:42
阅读次数:
224
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.思路:使用两个指针分别以1、2的速度遍历链表,以定位出链表的中点,进而将链表分割成...
分类:
其他好文 时间:
2014-08-17 02:21:36
阅读次数:
246
一下午在学习mysql,最有价值的就是这一点点Order by 可以对在select字句中出现的字段位置进行排列eg:select name,count(*) from eg group by name order by 2;;这里2的意思跟为count(*)取一个别名是一样的意思,Join(联结)...
分类:
数据库 时间:
2014-08-16 23:46:51
阅读次数:
313
Problem A: FrecklesIn an episode of the Dick Van Dyke show, little Richie connects the freckles on his Dad's back to form a picture of the Liberty Bel...
分类:
其他好文 时间:
2014-08-16 21:03:41
阅读次数:
319
The Lamp Game
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Little Tom likes playing games. Recently he is fond of a game called Lamp Game. The game is like this: at first, there are n lamps o...
分类:
其他好文 时间:
2014-08-16 15:10:10
阅读次数:
250
1.获取所有数据库名:SELECT Name from Master..SysDatabases ORDER BY Name2.获取所有表名:SELECT Name from DatabaseName..SysObjects Where XType='U' ORDER BY NameXType='U...
分类:
数据库 时间:
2014-08-16 13:45:30
阅读次数:
253
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers ...
分类:
其他好文 时间:
2014-08-16 12:35:30
阅读次数:
233
The first 3 parts are easy to get. I should know the name, version, and culture for the assembly since I am writing it. The part that can be a little ...
分类:
其他好文 时间:
2014-08-16 12:23:00
阅读次数:
226
Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST....
分类:
其他好文 时间:
2014-08-16 12:19:20
阅读次数:
227
A. Little Pony and Crystal Mine题意:输出一个类似于十字形的东西题解:直接打印即可。。。代码: 1 var n,i,j:longint; 2 begin 3 readln(n); 4 for i:=1 to n>>1 do 5 begin 6 f...
分类:
其他好文 时间:
2014-08-16 02:16:09
阅读次数:
207