2013年8月16日

未排序寻找连续 leetcode -- Longest Consecutive Sequence

摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The longest... 阅读全文

posted @ 2013-08-16 07:05 brave_bo 阅读(256) 评论(0) 推荐(0)

leetcode -- find the lowest common ancestor

摘要: Given a binary tree, find the lowest common ancestor of two given nodes in the tree. _______3______ / \ ___5__ _... 阅读全文

posted @ 2013-08-16 05:09 brave_bo 阅读(267) 评论(0) 推荐(0)

实现一个 linkedlist

摘要: class Link { public int data1; public double data2; public Link nextLink; //Link constructor public Link(int d1, double d2) { data1 = d1; data2 = d2; } //Print Link data public void printLink() { System.out.print("{" + data1 + ", " + data2 + "} "); }}c... 阅读全文

posted @ 2013-08-16 04:32 brave_bo 阅读(183) 评论(0) 推荐(0)

OOP 的概念

摘要: This article provides a brief description about the various Object Oriented Programming concepts.Object Oriented ProgrammingIt is a type of programming in which programmers define not only the data type of a data structure, but also the types of operations (functions) that can be applied to the data 阅读全文

posted @ 2013-08-16 03:53 brave_bo 阅读(286) 评论(0) 推荐(0)

java's static

摘要: staticvariables are shared by the entire class, not a specific instance (unlike normal member variables)staticmethods are also shared by the entire classstaticclasses are inner classes that aren’t tied to their enclosing classesstaticcan be used around a block of code in a class to specify code that 阅读全文

posted @ 2013-08-16 01:14 brave_bo 阅读(257) 评论(0) 推荐(0)

导航