数据结构
dancer_0405
我有一个执着的心,只要认准了一个方向我会一直走下去,因为我知道:付出+汗水=成功。
展开
-
LRU缓存淘汰
这里写自定义目录标题模板代码实现小技巧 模板代码实现 #pragma once #include<iostream> #include<unordered_map> template<typename Node> struct DListNode { int key_ = 0; Node* value_ = nullptr; DListNode* pre_ = nullptr; DListNode* next_ = nullptr; DListNode(){}原创 2021-01-06 20:17:32 · 111 阅读 · 0 评论 -
单链表常见面试题
//LinkList.h #ifndef _LINKLIST_H__ #define _LINKLIST_H__#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> #include<assert.h> typedef int DataType; typedef struct N原创 2017-06-26 16:33:15 · 262 阅读 · 0 评论