2015年5月20日
摘要: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes... 阅读全文
posted @ 2015-05-20 17:23 黄瓜小肥皂 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers.... 阅读全文
posted @ 2015-05-20 16:54 黄瓜小肥皂 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Given a range [m, n] where 0 >1;10 n=n>>1;11 p++;12 }13 14 return m<<p;15 }16 }; 阅读全文
posted @ 2015-05-20 16:28 黄瓜小肥皂 阅读(108) 评论(0) 推荐(0) 编辑