摘要: public class DiameterOfTree { public static int diameter = 0; public static int getDiameter(BinaryTreeNode root) { if (root != null) { ... 阅读全文
posted @ 2015-01-15 12:31 lilyfindjob 阅读(367) 评论(0) 推荐(0)
摘要: 找出一个string中第一个重复出现的单词;sample: he had had a good son.output: had句子中可能会出现,comma,colon, semicolon, dash, fullstop/dot解法:1;dash和dot 都是regular expression中的... 阅读全文
posted @ 2015-01-15 12:22 lilyfindjob 阅读(545) 评论(0) 推荐(0)