摘要:
class Solution { public int lastStoneWeight(int[] stones) { int len = stones.length; int i = len -1; int minus = 0; int remain = len; if(s... 阅读全文
posted @ 2019-07-31 17:55
CodingYM
阅读(101)
评论(0)
推荐(0)
摘要:
class Solution { public String removeDuplicates(String S) { String result =""; int len = S.length(); Stack st = new Stack(); ... 阅读全文
posted @ 2019-07-31 17:20
CodingYM
阅读(207)
评论(0)
推荐(0)
摘要:
class Solution { public int heightChecker(int[] heights) { int [] tmp = heights.clone(); Arrays.sort(tmp); int result = 0; for(int i = 0... 阅读全文
posted @ 2019-07-31 16:06
CodingYM
阅读(90)
评论(0)
推荐(0)
摘要:
Without using Reccursion 阅读全文
posted @ 2019-07-31 14:57
CodingYM
阅读(114)
评论(0)
推荐(0)
摘要:
Flyweight pattern is primarily used to reduce the number of objects created decrease memory footprint increase performance. Flyweight pattern tries to 阅读全文
posted @ 2019-07-31 11:54
CodingYM
阅读(319)
评论(0)
推荐(0)
摘要:
In Proxy pattern, a class represents functionality of another class. This type of design pattern comes under structural pattern. Below is the diagram 阅读全文
posted @ 2019-07-31 11:09
CodingYM
阅读(191)
评论(0)
推荐(0)

浙公网安备 33010602011771号