摘要:
题目描述 Design a data structure that supports all following operations in average O(1) time. Note: Duplicate elements are allowed. 题目大意 设计一个数据结构,实现以下三种操作 阅读全文
摘要:
题目描述 Design a data structure that supports all following operations in average O(1) time. 题目大意 设计一个数据结构,实现以下三种操作: 1. 插入:如果插入一个已存在的数字则返回false,否则插入该数字返回 阅读全文
摘要:
题目描述 Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it 阅读全文