摘要:I have a expression containing extra brackets .Write an algo which can remove unwanted brackets like expression is (((a+d)*(a-2))) so we shuld be able to get (a+d)*(a-2)One solution:Think it will be ... 阅读全文
Sort an array
2010-09-25 16:11 by wansishuang, 253 阅读, 0 推荐, 收藏, 编辑
摘要:You are given an array of positive integers. Convert it to a sorted array with minimum cost. Only valid operation are1) Decrement -> cost = 12) Delete an element completely from the array -> cos... 阅读全文