https://github.com/oscarwin/interview
https://github.com/oscarwin/interview
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oscarwin/interview
- Owner: oscarwin
- Created: 2019-09-27T12:44:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-03T09:05:15.000Z (over 5 years ago)
- Last Synced: 2024-11-11T10:42:33.433Z (7 months ago)
- Language: Python
- Size: 73.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - interview
README
# interview
## MySQL
### 索引
- [索引的模型有哪些,各有什么优劣?](https://github.com/oscarwin/interview/blob/master/doc/索引的模型有哪些,各有什么优劣?.md)
- [B 树与 B+ 树有哪些区别?]()
- [聚簇索引与非聚簇索引有什么区别?]()
- [什么是多列索引?多列索引有什么用?多列索引应该怎么建?]()
- [什么是索引下推?有什么作用?]()
- [什么是覆盖索引?有什么作用?]()
- [什么是前缀索引?有什么作用?]()
- [UUID 可不可以做主键,有什么优劣?]()
- [索引在什么情况下会失效?](https://github.com/oscarwin/interview/blob/master/doc/索引在什么情况下会失效?.md)
### 存储引擎
- [MySQL 的存储引擎有哪些?](https://github.com/oscarwin/interview/blob/master/doc/MySQL的存储引擎有哪些?.md)
- [InnoDB 与 MyIsam 有哪些区别,如何选择?](https://github.com/oscarwin/interview/blob/master/doc/InnoDB与MyIsam有哪些区别,如何选择?.md)
### 主从同步
- [MySQL 主从同步原理是什么?](https://github.com/oscarwin/interview/blob/master/doc/MySQL主从同步原理是什么?.md)
- [假设现在已经是一主一从,现在要再加入一台从机该怎么操作?](https://github.com/oscarwin/interview/blob/master/doc/假设现在已经是一主一从,现在要再加入一台从机该怎么操作?.md)
- [MySQL如何传输二进制日志,是主库推,还是从库拉?](https://github.com/oscarwin/interview/blob/master/doc/MySQL如何传输binlog日志,是主库推,还是从库拉?.md)
- [MySQL的数据如何恢复到任意时间点?](https://github.com/oscarwin/interview/blob/master/doc/MySQL的数据如何恢复到任意时间点?.md)
### 锁
- [乐观锁与悲观锁的区别?]()
### 事务
- [数据库事务的四个特性及含义](https://github.com/oscarwin/interview/blob/master/doc/数据库事务的四个特性及含义.md)
## Redis
- [Redis 持久化有哪几种方案?如何选择?]()
- [Redis 主从同步实现原理?]()
- [Redis 的 ZSET 用哪种数据结构实现的?]()
- [Redis 哨兵和集群分别怎么实现?]()
- [Redis Key 的过期策略?]()
- [Redis 内存不足如何解决?](https://github.com/oscarwin/interview/blob/master/doc/Redis内存不足如何解决?)
- [Redis 集群如何平滑扩容?]()
- [Redis 哈希表如何平滑扩容?]()
- [Redis 实现限流的方案]()
- [Redis 中 save 和 bgsave 的区别?](https://github.com/oscarwin/interview/blob/master/doc/Redis内存不足如何解决?)
## 消息队列
- [消息队列的作用](https://github.com/oscarwin/interview/blob/master/doc/消息队列的作用.md)
- [消息队列如何选型?](https://github.com/oscarwin/interview/blob/master/doc/消息队列如何选型?.md)
- [消息队列如何保证不丢消息?](https://github.com/oscarwin/interview/blob/master/doc/消息队列如何保证不丢消息?.md)
- [消息积压如何应对?](https://github.com/oscarwin/interview/blob/master/doc/消息积压如何应对?.md)
- [重复的消息如何处理?](https://github.com/oscarwin/interview/blob/master/doc/重复的消息如何处理?.md)
- [Kafka 中 publisher, subscriber, topic, broker, partition,producer, consumer, consumer group 分别指什么?](https://github.com/oscarwin/interview/blob/master/doc/Kafka%E4%B8%AD%E4%B8%93%E6%9C%89%E5%90%8D%E8%AF%8D%E8%A7%A3%E6%9E%90.md)
- [Kafka 选主算法?]()
- [Kafka 怎么保证一个 partition 同时只被一个消费者占用?]()
- [Kafka 实现高 QPS 得益于哪些设计实现?](https://github.com/oscarwin/interview/blob/master/doc/Kafka实现高吞吐得益于哪些设计实现?.md)
- [Kafka 与 RabbitMQ 的区别?]()
## ZooKeeper
- [一致性选举算法-raft]()
- [ZooKeeper 脑裂问题](https://github.com/oscarwin/interview/blob/master/doc/ZooKeeper脑裂问题.md)
## TCP/IP
- [TCP与UDP的区别](https://github.com/oscarwin/interview/blob/master/doc/TCP与UDP的区别.md)
- [TCP 协议相关问题](https://github.com/oscarwin/interview/blob/master/doc/TCP协议相关问题.md)
- [TIME_WAIT 状态的作用?等待时间是多少?](https://github.com/oscarwin/interview/blob/master/doc/TIME_WAIT状态的作用?等待时间是多少?.md)
- [多个程序可以绑定同一个端口吗?会发生什么?](https://github.com/oscarwin/interview/blob/master/doc/多个程序可以绑定同一个端口吗?会发生什么?.md)
- [select,poll 和 epoll 的区别?](https://github.com/oscarwin/interview/blob/master/doc/select,poll和epoll的区别?)
## HTTP/HTTPS
- [HTTP 和 HTTPS 的区别?](https://github.com/oscarwin/interview/blob/master/doc/HTTP和HTTPS的区别?.md)
- [HTTP 返回码?请求头的结构?请求方法?哪些是幂等的?](https://github.com/oscarwin/interview/blob/master/doc/HTTP返回码?请求头的结构?请求方法?哪些是幂等的?)
- [HTTPS 如何加密的?](https://github.com/oscarwin/interview/blob/master/doc/HTTPS如何加密的?.md)
- [GET 和 POST 的区别?](https://github.com/oscarwin/interview/blob/master/doc/GET和POST的区别?.md)
## 网络安全
## 操作系统
- [进程与线程的区别?](https://github.com/oscarwin/interview/blob/master/doc/进程与线程的区别?.md)
- [多进程程序与多线程程序的选择](https://github.com/oscarwin/interview/blob/master/doc/多进程程序与多线程程序的选择?.md)
- [什么是孤儿进程?什么是僵尸进程?如何找出系统中的僵尸进程?](https://github.com/oscarwin/interview/blob/master/doc/什么是孤儿进程?什么是僵尸进程?如何找出系统中的僵尸进程?.md)
- [多线程fork后,子进程中线程的数量与父进程的线程数量相同吗?](https://github.com/oscarwin/interview/blob/master/doc/多线程fork后,子进程中线程的数量与父进程的线程数量相同吗?.md)
- [虚拟内存](https://github.com/oscarwin/blog/blob/master/Linux%E7%94%A8%E6%88%B7%E7%A9%BA%E9%97%B4%E5%92%8C%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86.md)
- [死锁](https://github.com/oscarwin/interview/blob/master/doc/死锁.md)
- [Linux 内核的内存管理算法]()
## 分布式
- [令牌桶限流算法]()
- [缓存与数据库之前如何保证数据一致性]
- [什么是缓存击穿?什么是缓存穿透?热点数据缓存?]
- [什么是一致性哈希?有什么作用?](https://blog.csdn.net/cywosp/article/details/23397179)
## 语言
### Python
### Go
### C++
- [static关键词的作用](https://github.com/oscarwin/interview/blob/master/doc/static关键词的作用.md)
- [new与malloc的区别以及实现方法](https://github.com/oscarwin/interview/blob/master/doc/new与malloc的区别以及实现方法.md)
- [多态与虚函数表](https://github.com/oscarwin/interview/blob/master/doc/多态与虚函数表.md)
- [智能指针]
## 系统设计题
- [请解释下为什么鹿晗发布恋情的时候,微博系统会崩溃,如何解决?](https://github.com/oscarwin/interview/blob/master/doc/请解释下为什么鹿晗发布恋情的时候,微博系统会崩溃,如何解决?.md)
- [如何避免向用户重复推送同一篇文章?]()
- [微信扫码登录实现?]
## 数据结构与算法
- 常考链表题
- 常考树题
- 有一副扑克牌,按照如下规则把它堆放在桌上。(1) 拿出最上面一张放在桌上,(2) 接来下的一张放到扑克牌的最下面,(3) 重复过程1和2,直到牌发完。先已经桌上手牌的顺序,求扑克牌原来的顺序
- 两数之和
- [什么是满二叉树?什么是完全二叉树?](https://www.jianshu.com/p/ac95b5a7de8b)
- string转float
## 智力题
- [两根不均匀的香1小时烧完,怎么得到15分钟?](https://github.com/oscarwin/interview/blob/master/doc/两根不均匀的香1小时烧完,怎么得到15分钟?.md)
- [在一个房间内有三盏灯,三个开关在门外,门外看不到门内的情况,你只能进房间一次,你会怎么样判断出哪一个开关控制哪盏灯?]