1.引用命名空间 xmlns:Primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data" xmlns:data="clr-namespace:System.Wi...
分类:
Web程序 时间:
2014-10-15 12:53:40
阅读次数:
178
[leetcode]
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with th...
分类:
其他好文 时间:
2014-10-15 11:42:20
阅读次数:
224
Source:https://oj.leetcode.com/problems/longest-common-prefix/Write a function to find the longest common prefix string amongst an array of strings.Hi...
分类:
编程语言 时间:
2014-10-14 00:46:47
阅读次数:
306
String apppath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase; //获取整个文件路径名
apppath = apppath.Substring(0, apppath.LastIndexOf(@"\")); //去掉/后面的程序名
MessageBox.Show(apppath);
...
// 检查是否是管理员身份 private void CheckAdministrator() { try { var wi = WindowsIdentity.GetCurr...
Palindrome Partitioning
Total Accepted: 21056 Total
Submissions: 81036My Submissions
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all...
分类:
其他好文 时间:
2014-10-13 11:18:20
阅读次数:
173
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-10-12 17:54:08
阅读次数:
177
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-10-12 17:16:38
阅读次数:
155
对于php环境的配置图文教材先准备好软件:Apache官方下载地址:apache_2.0.55-win32-x86-no_ssl.msi,更多版本在这里;php官方下载地址:php-5.0.5-Win32.zip,更多镜像下载地址,更多版本下载;mysql官方下载地址:mysql-4.1.14-wi...
分类:
数据库 时间:
2014-10-12 10:49:37
阅读次数:
364
Js的substring和C#的Substring的作用都是从一个字符串中截取出一个子字符串,但它们的用法却有非常大的不同,下边我们来比較看看:Js的substring语法:程序代码String.substring(start, end)说明:返回一个从start開始到end(不包括end)的子字符...
分类:
Web程序 时间:
2014-10-11 23:33:37
阅读次数:
218