对于我来说 这种dfs之类的题目还是挺有难度的,尤其是各种条件和设计要想清楚, dfs经典题目,尤其是最后要退一步,高亮处public class Solution { public boolean exist(char[][] board, String word) { if(...
分类:
其他好文 时间:
2015-04-17 07:10:34
阅读次数:
104
原文链接1、新建表 privateDataTablevsDt=newDataTable();2、清空表中内容(表中的列还在) vsDt.Clear(); 3、清空表中的列 vsDt.Columns.Clear();4、表中添加列vsDt.Columns.Add("BH",typeof(string)...
1 package java_test; 2 3 public class labelWhile { 4 5 public static void main(String[] args) { 6 int i = 0; 7 outer: while (tr...
分类:
编程语言 时间:
2015-04-17 01:11:41
阅读次数:
199
这篇博客是我一直想总结的,这两天一直比较忙,先上传下照片吧,过后有时间再弄成正常的。本文主要是对Java中String类型的总结,包括其在JVM中是怎么存储的。。。
分类:
编程语言 时间:
2015-04-17 01:10:45
阅读次数:
161
1 package java_test; 2 3 public class LabeledFor { 4 5 public static void main(String[]args){ 6 int i=0; 7 outer: //Cannot have...
分类:
编程语言 时间:
2015-04-17 01:07:34
阅读次数:
225
题目: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-04-17 01:03:11
阅读次数:
128
'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input string (not partial).The...
分类:
其他好文 时间:
2015-04-17 00:58:49
阅读次数:
127
异常丢失的情况: 先定义三个异常:public class ExceptionA extends Exception { public ExceptionA(String str) { super(); }} public class ExceptionB exten...
分类:
编程语言 时间:
2015-04-17 00:57:07
阅读次数:
215
一个项目中肯定需要处理各种各样的错误。而对于这些错误,一方面需要程序反应出这些错误并可以让程序员快速地
定位到,另一方面,在发生某些错误时需要给用户适当的错误提示。比如某个请求的方法是public User getUserInfo(String userId)此时请求参数userId为null,我在项目中会这么做public User getUserInfo(String userId){...
分类:
其他好文 时间:
2015-04-16 23:46:42
阅读次数:
142
Tavas is a strange creature. Usually "zzz" comes out of people's mouth while sleeping, but string s of
length n comes out from Tavas' mouth instead.
Today Tavas fell asleep in Malekas' place. W...
分类:
其他好文 时间:
2015-04-16 23:46:03
阅读次数:
233