摘要: 232. Implement Queue using Stacks Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- 阅读全文
posted @ 2016-08-01 06:20 新一代的天皇巨星 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 151. Reverse Words in a String Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the 阅读全文
posted @ 2016-08-01 04:58 新一代的天皇巨星 阅读(214) 评论(0) 推荐(0) 编辑