摘要: Implement FreqStack, a class which simulates the operation of a stack-like data structure. FreqStack has two functions: push(int x), which pushes an i 阅读全文
posted @ 2019-07-19 15:12 北叶青藤 阅读(256) 评论(0) 推荐(0)
摘要: In a country popular for train travel, you have planned some train travelling one year in advance. The days of the year that you will travel is given 阅读全文
posted @ 2019-07-19 14:32 北叶青藤 阅读(283) 评论(0) 推荐(0)
摘要: Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order. Examp 阅读全文
posted @ 2019-07-19 13:43 北叶青藤 阅读(244) 评论(0) 推荐(0)