自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 java类StringTokenizer

java.util.StringTokenizer,即字符串分割类 使用方法:tringTokenizer st = new StringTokenizer("this is a test");while(st.hasMoreToken()) { System.out.println(st.nextToken());}输出: this is a test在新的java版本,不建

2016-10-23 14:36:09 442

原创 Hadoop中NameNode服务没起来

1.在hdfs-site.xml中添加<property> <name>hadoop.tmp.dir</name> <value>/home/zangtt/hadoop-1.2.1/tmp</value> <description>A base for other temporary directories</description> </property>并删除tmp目录下的文

2016-10-20 17:09:42 471

原创 求阶乘的最后非零位

基本思想:将x个输入每10个一组进行分组,剩余的最后一组单独列出。将10个一组的数据相乘后再除以(5的倍数乘4),以第一组数据为例:(1*2*3*4*5*6*7*8*9*10)/(4*5*10)=1*2*3*4*6*7*8*9/4,最后一位是4,同理,别的几组最后一位数字也是4,易得最后一位数字为4或6。接下来处理与5的倍数相关的数据,即4*(5*10)4(15*20)…=10(1*2*3*4*5*

2016-10-18 20:55:31 1046

原创 Longest substring without repeating characters

Given a string, find the length of the longest substring without repeating characters. Examples: Given “abcabcbb”, the answer is “abc”, which the length is 3. Given “bbbbb”, the answer is “b”, with

2016-10-14 12:49:41 256

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除