摘要: TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http 阅读全文
posted @ 2018-01-02 05:35 逸朵 阅读(255) 评论(0) 推荐(0)
摘要: Shuffle a set of numbers without duplicates. Example: 阅读全文
posted @ 2018-01-02 04:13 逸朵 阅读(128) 评论(0) 推荐(0)
摘要: Design a data structure that supports all following operations in average O(1) time. Note: Duplicate elements are allowed. insert(val): Inserts an ite 阅读全文
posted @ 2018-01-02 03:49 逸朵 阅读(142) 评论(0) 推荐(0)