250分题:给定一个4位字符串initial和rotate这个字符串的方式,然后再给另一个字符串current,问current能否由initial通过rotate得到,需要几次rotate?简单的模拟题,把rotate模拟好就行。代码:TireRotation500分题:给定一个等式,求出这个等式...
分类:
其他好文 时间:
2014-08-26 13:10:56
阅读次数:
146
一.允许网页宽度自动调整: "自适应网页设计"到底是怎么做到的?其实并不难。 首先,在网页代码的头部,加入一行viewport元标签。viewport是网页默认的宽度和高度,上面这行代码的意思是,网页宽度默认等于屏幕宽度(width=device-width),原始缩放比例(initial-scal...
分类:
移动开发 时间:
2014-08-24 15:19:42
阅读次数:
236
Consider this sequence {1, 2, 3, … , N}, as a initial sequence of firstN natural numbers. You can rearrange this sequence in many ways. Therewill be
N! different arrangements. You have to calculate t...
分类:
其他好文 时间:
2014-08-23 15:27:01
阅读次数:
202
http://blog.micxp.com/index.php/archives/113/ mysql远程连接出现了ERROR 2013 (HY000): Lost connection to MySQL server at ‘waiting for initial communication packet‘, system error: 0?错误,其解决办法...
分类:
数据库 时间:
2014-08-21 17:25:14
阅读次数:
342
异步C#代码:using System;using System.Speech.Synthesis;namespace SampleSynthesis{ class Program { static void Main(string[] args) { // Initial...
分类:
其他好文 时间:
2014-08-19 18:36:25
阅读次数:
346
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initial...
分类:
其他好文 时间:
2014-08-19 10:52:14
阅读次数:
307
DataSet ds = new DataSet(); using (SqlConnection conn = new SqlConnection(@"data source=.\sqlxu;initial catalog=NationalUnion20140717;persist security...
分类:
其他好文 时间:
2014-08-18 17:55:02
阅读次数:
249
题目链接题意:给一个n个数的序列a1, a2, ..., an ,这些数的范围是0~n-1, 可以把前面m个数移动到后面去,形成新序列:a1, a2, ..., an-1, an (where m = 0 - the initial seqence)a2, a3, ..., an, a1 (wher...
分类:
其他好文 时间:
2014-08-16 21:00:01
阅读次数:
188
1 SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=ArchiveSys;Integrated Security=True"); 2 //SQLHelper...
分类:
数据库 时间:
2014-08-14 23:30:46
阅读次数:
291
“自适应网页设计”到底是怎么做到的?其实并不难。 首先,在网页代码的头部,加入一行viewport元标签。 1. 2. 复制代码 viewport是网页默认的宽度和高度,上面这行代码的意思是,网页宽度默认等于屏幕宽度(width=device-width),原始缩放比例(initial-...
分类:
Web程序 时间:
2014-08-14 23:25:06
阅读次数:
276