摘要: 1.String 与 StringBuffer 、 StringBuilder的区别 String是字符串常量,java的字符串不变性,每当用String操作字符串时,实际上实在不断创建新的字符串对象,老的字符串对象经过GC(垃圾回收操作)回收,而使用StringBuilder和StringBuff 阅读全文
posted @ 2017-08-22 17:56 起床oO 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 611. Valid Triangle Number 1.Problem Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the ar 阅读全文
posted @ 2017-08-22 15:17 起床oO 阅读(145) 评论(0) 推荐(0) 编辑