06 2014 档案

摘要:pros:1. 韩顺平课结束,择日开始做weidou吧。。。2. 跟上了地里的刷cc150题的进度3. 马上就要拿到第一张coursera的证书啦*^__^*4. 签证,机票解决cons:1. leetcode很久没动了。。。2. coursera上的公开课有点掉队,这礼拜要补上3. 隐形眼镜,眼镜... 阅读全文
posted @ 2014-06-29 22:08 Phoebe815 阅读(116) 评论(0) 推荐(0)
摘要:有用的链接:http://blog.csdn.net/yunlong34574/article/details/8851942 阅读全文
posted @ 2014-06-22 18:40 Phoebe815 阅读(161) 评论(0) 推荐(0)
摘要:转载http://blog.csdn.net/yutianzuijin/article/details/11954939kmp算法又称“看毛片”算法,是一个效率非常高的字符串匹配算法。不过由于其难以理解,所以在很长的一段时间内一直没有搞懂。虽然网上有很多资料,但是鲜见好的博客能简单明了地将其讲清楚。... 阅读全文
posted @ 2014-06-19 16:01 Phoebe815 阅读(144) 评论(0) 推荐(0)
摘要:Question:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity s... 阅读全文
posted @ 2014-06-18 19:14 Phoebe815 阅读(227) 评论(0) 推荐(0)
摘要:1 public class PercolationStats { 2 3 private int N; 4 private int T; 5 private double[] results; 6 7 public PercolationStats(int N... 阅读全文
posted @ 2014-06-16 17:53 Phoebe815 阅读(716) 评论(0) 推荐(0)
摘要:1 public class Percolation { 2 private boolean[] openSites; 3 private int gridN; 4 private WeightedQuickUnionUF UF; 5 private We... 阅读全文
posted @ 2014-06-16 17:50 Phoebe815 阅读(550) 评论(0) 推荐(0)
摘要:Question:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, ... 阅读全文
posted @ 2014-06-13 18:56 Phoebe815 阅读(146) 评论(0) 推荐(0)
摘要:内部类详解1、定义 一个类的定义放在另一个类的内部,这个类就叫做内部类。 public class First { public class Contents{ public void f(){ System.out.println("In Class First'... 阅读全文
posted @ 2014-06-13 17:17 Phoebe815 阅读(180) 评论(0) 推荐(0)
摘要:/*** @author guwh* @version 创建时间:2011-11-3 上午10:49:36* 类说明*/ package com.jabberchina.test;import java.util.ArrayList;import java.util.Collections;impo... 阅读全文
posted @ 2014-06-13 17:05 Phoebe815 阅读(416) 评论(0) 推荐(0)
摘要:Question:Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].-----... 阅读全文
posted @ 2014-06-13 17:00 Phoebe815 阅读(233) 评论(0) 推荐(0)
摘要:Question:Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the pro... 阅读全文
posted @ 2014-06-12 22:23 Phoebe815 阅读(828) 评论(0) 推荐(0)
摘要:转载http://luolei.org/regula-expression-simple-tutorial/第一次接触正则表达式是在今年四月的腾讯笔试,当时是一道选择题问如何判断输入的是否是 QQ 号码(即纯数字),当时是蒙了一个答案,菜鸟不会嘛 ╮(╯3╰)╭ 。事后自己倒专门学习了正则表达式,还... 阅读全文
posted @ 2014-06-12 18:06 Phoebe815 阅读(392) 评论(0) 推荐(0)
摘要:Question:Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all suc... 阅读全文
posted @ 2014-06-12 15:32 Phoebe815 阅读(299) 评论(2) 推荐(0)
摘要:Question:Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.F... 阅读全文
posted @ 2014-06-12 14:27 Phoebe815 阅读(220) 评论(0) 推荐(0)
摘要:转载 http://blog.163.com/asd_wll/blog/static/210310402010112833332260/1、HashSet类Java.util.HashSet类实现了Java.util.Set接口。l它不允许出现重复元素;l不保证和政集合中元素的顺序l允许包含值为n... 阅读全文
posted @ 2014-06-12 14:00 Phoebe815 阅读(2440) 评论(0) 推荐(0)
摘要:Question:Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in t... 阅读全文
posted @ 2014-06-12 13:20 Phoebe815 阅读(357) 评论(3) 推荐(0)