题目:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telep...
分类:
其他好文 时间:
2015-05-04 08:37:28
阅读次数:
183
小二好久没有更新博客了,真是罪过,最近在看linux的东西导致进度耽搁了,所以今晚睡觉前怒刷一题!问题描述:Write a function to find the longest common prefix string amongst an array of strings.解题思路:该问题就是...
分类:
编程语言 时间:
2015-05-04 01:12:56
阅读次数:
534
baseWin不能有XAML文件,只能是一个类namespace WPFStudy{ public class MyBaseWin : Window { public MyBaseWin(int w, int h, String title) { this.WindowStartupLocation...
题目:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: P...
分类:
其他好文 时间:
2015-05-03 23:27:29
阅读次数:
113
一、方法递归 方法的递归是指在一个方法的内部调用自身的过程,递归必须要有结束条件,不然就会陷入无限递归的状态,永远无法结束调用。 实例代码: class demo4{ public static void main(String[] args) { int sum=getSum(100)...
分类:
其他好文 时间:
2015-05-03 23:23:35
阅读次数:
150
#include
#include
using namespace std;
int FirstNotRepeatingChar(string str) {
int n = str.length();
if(n10000)return -1;
int i = 0;
for(;i<n;i++)
{
...
分类:
编程语言 时间:
2015-05-03 22:08:45
阅读次数:
137
Boostrap分页控件比较美观,控制器代码:使用仓储模式实现。如果是直接使用DbContext上下文使用更简单。 public ActionResult Index(int? page,string categoryName,string SearchTitle) { ...
分类:
Web程序 时间:
2015-05-03 21:49:59
阅读次数:
172
package com.lc.igou.util;import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;public class MD5Util { public static String ge...
分类:
编程语言 时间:
2015-05-03 20:38:17
阅读次数:
107
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-05-03 20:30:08
阅读次数:
112
import java.util.Scanner; public class Syscontrol{ public static void main(String[] args) { UI.menu(); } } class UI { pu...
分类:
其他好文 时间:
2015-05-03 20:21:14
阅读次数:
74