摘要: 题目描述:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each nu... 阅读全文
posted @ 2015-12-04 22:03 scottwang 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeate... 阅读全文
posted @ 2015-12-04 21:18 scottwang 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 转自:http://kakajw.iteye.com/blog/935226一、java对象的比较等号(==):对比对象实例的内存地址(也即对象实例的ID),来判断是否是同一对象实例;又可以说是判断对象实例是否物理相等;equals():对比两个对象实例是否相等。当对象所属的类没有重写根类Objec... 阅读全文
posted @ 2015-12-04 14:41 scottwang 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 1、equals 和 ====在java中是比较引用的,即在内存中的地址。而String的equals()是比较字符串的内容http://blog.csdn.net/barryhappy/article/details/6082823先看这几句代码[java]view plaincopyprint?... 阅读全文
posted @ 2015-12-04 14:24 scottwang 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/Terry-greener/archive/2011/12/02/2271707.htmlSet接口Set不允许包含相同的元素,如果试图把两个相同元素加入同一个集合中,add方法返回false。Set判断两个对象相同不是使用==运算符,而是根据eq... 阅读全文
posted @ 2015-12-04 10:49 scottwang 阅读(149) 评论(0) 推荐(0) 编辑