档案日期2016的32

2016年8月8日 - 2016年8月14日

[LeetCode]Ransom Note

题目描述:

LeetCode 383. Ransom Note

Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from the magazines; otherwise, it will ...

继续阅读

[LeetCode]Insert Delete GetRandom O(1) - Duplicates allowed

题目描述:

LeetCode 381. Insert Delete GetRandom O(1) - Duplicates allowed

Design a data structure that supports all following operations in average O(1) time.

Note: Duplicate elements are allowed.

  1. insert(val): Inserts an item val to the collection.
  2. remove(val ...

继续阅读

每日归档

上周

下周

归档