摘要: 题目描述 Design a data structure that supports all following operations in average O(1) time. Note: Duplicate elements are allowed. 题目大意 设计一个数据结构,实现以下三种操作 阅读全文
posted @ 2019-07-29 15:04 你好哇傻小妞 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Design a data structure that supports all following operations in average O(1) time. 题目大意 设计一个数据结构,实现以下三种操作: 1. 插入:如果插入一个已存在的数字则返回false,否则插入该数字返回 阅读全文
posted @ 2019-07-29 11:22 你好哇傻小妞 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 题目描述 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 阅读全文
posted @ 2019-07-29 11:05 你好哇傻小妞 阅读(180) 评论(0) 推荐(0) 编辑