02 2017 档案

Java内存模型
摘要:参考自 "http://www.cnblogs.com/dolphin0520/p/3920373.html" 线程安全 1. 不可变对象一定是线程安全的 2. 绝对线程安全: 不管运行环境如何,调用者都不需要任何额外的同步措施 3. 相对线程安全:对这个对象单独的操作是线程安全的,不需要额外的保障 阅读全文

posted @ 2017-02-24 13:52 LeonNew 阅读(121) 评论(0) 推荐(0)

LeetCode---Backtracking && DP
摘要:322. Coin Change 思路:动态规划,构造一个数组,存入当前index最少需要多少个coin public int coinChange(int[] coins, int amount) { if(coins == null || coins.length == 0 || amount 阅读全文

posted @ 2017-02-04 12:04 LeonNew 阅读(194) 评论(0) 推荐(0)

导航