![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
映射
文章平均质量分 90
memcpy0
希望探索文理结合的自由之路。
展开
-
LeetCode 729. My Calendar I【设计;有序集合,二分查找;线段树】中等
本文属于「征服LeetCode」系列文章之一,这一系列正式开始于2021/08/12。由于LeetCode上部分题目有锁,本系列将至少持续到刷完所有无锁题之日为止;由于LeetCode还在不断地创建新题,本系列的终止日期可能是永远。在这一系列刷题文章中,我不仅会讲解多种解题思路及其优化,还会用多种编程语言实现题解,涉及到通用解法时更将归纳总结出相应的算法模板。为了方便在PC上运行调试、分享代码文件,我还建立了相关的。原创 2023-09-10 20:20:03 · 252 阅读 · 0 评论 -
LeetCode 1418. Display Table of Food Orders in a Restaurant【集合/映射/字符串】中等
Given the array orders, which represents the orders that customers have done in a restaurant. More specifically orders[i]=[customerNamei,tableNumberi,foodItemi] where customerNamei is the name of the customer, tableNumberi is the table custo原创 2021-07-12 21:33:38 · 160 阅读 · 1 评论 -
LeetCode C++ 884. Uncommon Words from Two Sentences【Hash Table/String】简单
We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.) A word is uncommon if it appears exactly once in one of the sentences, and does not appear in the other sentence. Return原创 2020-11-14 13:27:44 · 157 阅读 · 0 评论 -
Leetcode C++ 5370. Design Underground System【模拟】
Implement the class UndergroundSystem that supports three methods: 1.checkIn(int id, string stationName, int t) A customer with id card equal to id, gets in the station stationName at time t. A custo...原创 2020-03-29 13:12:07 · 298 阅读 · 0 评论 -
【数据结构Java实现】映射【链表和二叉搜索树实现】
文章目录映射1. 映射介绍2. 基于链表实现的映射3. 基于二分搜索树的映射4. 性能比较和复杂度分析5. 有序映射和无序映射6. 多重映射7. 集合和映射的关系 映射 1. 映射介绍 C++的 mapmapmap,Python的字典 dictdictdict,Java的 TreeMap,HashMapTreeMap, HashMapTreeMap,HashMap,都是映射。更抽象的说,函数/方法...原创 2020-03-26 21:45:22 · 284 阅读 · 0 评论