2016年5月8日

Rotate Image

摘要: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up:Could you do this in-place? 题目要求顺时针翻转一个二 阅读全文

posted @ 2016-05-08 16:52 Sheryl Wang 阅读(311) 评论(0) 推荐(0) 编辑

Min Stack

摘要: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov 阅读全文

posted @ 2016-05-08 11:23 Sheryl Wang 阅读(147) 评论(0) 推荐(0) 编辑

导航