Problem Description:
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given...
分类:
其他好文 时间:
2014-08-15 22:34:39
阅读次数:
330
Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descending order....
分类:
其他好文 时间:
2014-08-15 21:08:29
阅读次数:
212
Given a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not c...
分类:
其他好文 时间:
2014-08-15 17:18:39
阅读次数:
177
I got a DP solution first which is O(n^2). Apparently it is not a optimized one - think about: it is linear value space. There must be O(n) solution.A...
分类:
其他好文 时间:
2014-08-15 05:04:07
阅读次数:
249
BitmapImage bi = new BitmapImage(); // BitmapImage.UriSource must be in a BeginInit/EndInit block. bi.BeginInit(); ...
分类:
其他好文 时间:
2014-08-14 15:50:28
阅读次数:
277
htaccess文件内容:
Header set Cache-Control "max-age=604800, public"
Header set Cache-Control "max-age=18000, public, must-revalidate"
Header set Cache-Control "max-age=3600, must-revalidate"
by...
分类:
数据库 时间:
2014-08-14 10:47:18
阅读次数:
243
Description
Problem G - Great Numbers
In this problem you have to count the number of great numbers of length n. Here a great number must have the following property:
the number must be divis...
分类:
其他好文 时间:
2014-08-13 22:35:27
阅读次数:
219
Don't forget the things you once owned. Treasure the things you can't get. Don't give up the things that belong to you and keep those lost things in m...
分类:
其他好文 时间:
2014-08-13 17:55:06
阅读次数:
220
1,关闭eclipse并在进程中杀掉adb.exe,然后重启。2,如有真机连接,拔掉真机,重复1的步骤,3,关掉eclipse,然后在命令行运行如下命令 adb kill-server adb start-server 然后重启eclipse
分类:
数据库 时间:
2014-08-13 14:46:16
阅读次数:
245
Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order...
分类:
其他好文 时间:
2014-08-13 00:38:14
阅读次数:
281