- 博客(8)
- 收藏
- 关注
原创 [LeetCode] Unique Binary Search Trees
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 1
2015-01-14 12:57:44 442
原创 [LeetCode] Linked List CycleII
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?
2014-07-09 11:36:05 554
转载 java学习笔记05--字符串
原作者写得很好,简明易懂,条理清晰原文地址http://blog.csdn.net/itmyhome1990/article/details/8932882一、String类由字符所组成的一串文字符号被称之为字符串。在java中字符串不仅仅是字符数组,而且是String类的一个实例,可以使用String类来构建。字符串的每个字符是使用Unic
2013-10-05 04:58:19 659
原创 IOstream学习
//待完善在老师给的Homework1 example里这位同学写的输入流如下import java.io.BufferedInputStream;import java.io.BufferedReader;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOE
2013-09-27 05:46:12 900
原创 Java 学习
荒废了两年的学业,一来上课发现自己基础还是差了点,想想曾经度日方式,唏嘘不已。看到一亩三分地上一master才开始学计算机的人花了半年从hello world到编译器,我才感觉到世界上没有什么是不可能的,只要你去拼搏。以我的基础,思前想后,半年也差不多了吧。最近总结出了一个学习的经验,姑且叫滚雪球效应吧,意思是学习的过程其实是一个滚雪球的过程,一开始不必大张旗鼓一天学习多少量多少量;从小做起,
2013-09-27 04:18:28 612
原创 杭电OJ 2054
Problem DescriptionGive you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".Inputeach test case contains two numbers A and B. Outputfor each case, if A is
2012-08-12 18:57:01 871
原创 大数.去除小数点后的0
void delete_zero(char* s){ int len; int i; len = strlen(s); for (i = len; i >= 0; i--) { if (s[i] == '0') len--; else break;
2012-08-12 18:52:32 462
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人