- 博客(4)
- 资源 (1)
- 收藏
- 关注
转载 第五题:LeetCode-225-Implement Stack using Queues
Subject: Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. top() -- Get the top element. empty() ...
2018-02-04 12:53:45 206
转载 第六题:LeetCode-232-Implement Queue using Stacks
Subject: Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front of queue. peek() -- Get the front el...
2018-02-04 11:04:50 227
原创 LeetCode-48-Rotate Image
Subject: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which means you have to modify the input 2
2018-02-03 11:28:29 284
原创 LeetCode-151-Reverse Words in a String
package leetcode.algorithm; /** * @author lkl * 20180201 */ /* * Subject: * Given an input string, reverse the string word by word. * For example: * Given s = "the sky is blue" * return "blue
2018-02-03 08:27:08 194
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人