摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 ... 阅读全文
posted @ 2015-05-02 21:24 sunp823 阅读(116) 评论(0) 推荐(0) 编辑
摘要: java集合类主要由两个接口派生而出:Collection和Map,请注意,Map没有继承Collection接口. Set集合。 Set集合里面的多个对象没有明显顺序。Set不允许有重复元素。当试图把两个相同的对象()加入一个Set中时,对象会调用equals方法比较两个对象元素是否相同,... 阅读全文
posted @ 2015-05-02 16:47 sunp823 阅读(3857) 评论(0) 推荐(1) 编辑