2014年12月11日

Path Sum II

摘要: Path Sum IIGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tr... 阅读全文

posted @ 2014-12-11 19:12 luckygxf 阅读(194) 评论(0) 推荐(0) 编辑

java synchronized(一)

摘要: java synchronized主要用于控制线程同步,中间有很多小的细节,知识,这里我简单的整理一下,做个记录。主要用于方法和代码块的控制先说说方法控制模拟银行存款和取款,创建一个Account类,两个属性,一个name和accout。先存1w进去,在用一100个线程取钱1k和存1k。等待所有线程... 阅读全文

posted @ 2014-12-11 11:14 luckygxf 阅读(193) 评论(0) 推荐(0) 编辑

导航