{"id":13672543,"url":"https://github.com/oscarwin/interview","last_synced_at":"2025-04-27T22:32:21.431Z","repository":{"id":217152522,"uuid":"211317418","full_name":"oscarwin/interview","owner":"oscarwin","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-03T09:05:15.000Z","size":75,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-11T10:42:33.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oscarwin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-27T12:44:24.000Z","updated_at":"2020-11-03T16:02:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"e370c096-6d8e-4a94-a989-af43c54d5312","html_url":"https://github.com/oscarwin/interview","commit_stats":null,"previous_names":["oscarwin/interview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarwin%2Finterview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarwin%2Finterview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarwin%2Finterview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarwin%2Finterview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oscarwin","download_url":"https://codeload.github.com/oscarwin/interview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219601,"owners_count":21554444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T09:01:38.756Z","updated_at":"2025-04-27T22:32:21.426Z","avatar_url":"https://github.com/oscarwin.png","language":"Python","readme":"# interview\n\n## MySQL\n\n### 索引\n\n- [索引的模型有哪些，各有什么优劣？](https://github.com/oscarwin/interview/blob/master/doc/索引的模型有哪些，各有什么优劣？.md)\n\n- [B 树与 B+ 树有哪些区别？]()\n\n- [聚簇索引与非聚簇索引有什么区别？]()\n\n- [什么是多列索引？多列索引有什么用？多列索引应该怎么建？]()\n\n- [什么是索引下推？有什么作用？]()\n\n- [什么是覆盖索引？有什么作用？]()\n\n- [什么是前缀索引？有什么作用？]()\n\n- [UUID 可不可以做主键，有什么优劣？]()\n\n- [索引在什么情况下会失效？](https://github.com/oscarwin/interview/blob/master/doc/索引在什么情况下会失效？.md)\n\n### 存储引擎\n\n- [MySQL 的存储引擎有哪些？](https://github.com/oscarwin/interview/blob/master/doc/MySQL的存储引擎有哪些？.md)\n\n- [InnoDB 与 MyIsam 有哪些区别，如何选择？](https://github.com/oscarwin/interview/blob/master/doc/InnoDB与MyIsam有哪些区别，如何选择？.md)\n\n### 主从同步\n\n- [MySQL 主从同步原理是什么？](https://github.com/oscarwin/interview/blob/master/doc/MySQL主从同步原理是什么？.md)\n\n- [假设现在已经是一主一从，现在要再加入一台从机该怎么操作？](https://github.com/oscarwin/interview/blob/master/doc/假设现在已经是一主一从，现在要再加入一台从机该怎么操作？.md)\n\n- [MySQL如何传输二进制日志，是主库推，还是从库拉？](https://github.com/oscarwin/interview/blob/master/doc/MySQL如何传输binlog日志，是主库推，还是从库拉？.md)\n\n- [MySQL的数据如何恢复到任意时间点？](https://github.com/oscarwin/interview/blob/master/doc/MySQL的数据如何恢复到任意时间点？.md)\n\n### 锁\n\n- [乐观锁与悲观锁的区别？]()\n\n### 事务\n\n- [数据库事务的四个特性及含义](https://github.com/oscarwin/interview/blob/master/doc/数据库事务的四个特性及含义.md)\n\n## Redis\n\n- [Redis 持久化有哪几种方案？如何选择？]()\n\n- [Redis 主从同步实现原理？]()\n\n- [Redis 的 ZSET 用哪种数据结构实现的？]()\n\n- [Redis 哨兵和集群分别怎么实现？]()\n\n- [Redis Key 的过期策略？]()\n\n- [Redis 内存不足如何解决？](https://github.com/oscarwin/interview/blob/master/doc/Redis内存不足如何解决？)\n\n- [Redis 集群如何平滑扩容？]()\n\n- [Redis 哈希表如何平滑扩容？]()\n\n- [Redis 实现限流的方案]()\n\n- [Redis 中 save 和 bgsave 的区别？](https://github.com/oscarwin/interview/blob/master/doc/Redis内存不足如何解决？)\n\n## 消息队列\n\n- [消息队列的作用](https://github.com/oscarwin/interview/blob/master/doc/消息队列的作用.md)\n\n- [消息队列如何选型？](https://github.com/oscarwin/interview/blob/master/doc/消息队列如何选型？.md)\n\n- [消息队列如何保证不丢消息？](https://github.com/oscarwin/interview/blob/master/doc/消息队列如何保证不丢消息？.md)\n\n- [消息积压如何应对？](https://github.com/oscarwin/interview/blob/master/doc/消息积压如何应对？.md)\n\n- [重复的消息如何处理？](https://github.com/oscarwin/interview/blob/master/doc/重复的消息如何处理？.md)\n\n- [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)\n\n- [Kafka 选主算法？]()\n\n- [Kafka 怎么保证一个 partition 同时只被一个消费者占用？]()\n\n- [Kafka 实现高 QPS 得益于哪些设计实现？](https://github.com/oscarwin/interview/blob/master/doc/Kafka实现高吞吐得益于哪些设计实现？.md)\n\n- [Kafka 与 RabbitMQ 的区别？]()\n\n## ZooKeeper\n\n- [一致性选举算法-raft]()\n\n- [ZooKeeper 脑裂问题](https://github.com/oscarwin/interview/blob/master/doc/ZooKeeper脑裂问题.md)\n\n## TCP/IP\n\n- [TCP与UDP的区别](https://github.com/oscarwin/interview/blob/master/doc/TCP与UDP的区别.md)\n\n- [TCP 协议相关问题](https://github.com/oscarwin/interview/blob/master/doc/TCP协议相关问题.md)\n\n- [TIME_WAIT 状态的作用？等待时间是多少？](https://github.com/oscarwin/interview/blob/master/doc/TIME_WAIT状态的作用？等待时间是多少？.md)\n\n- [多个程序可以绑定同一个端口吗？会发生什么？](https://github.com/oscarwin/interview/blob/master/doc/多个程序可以绑定同一个端口吗？会发生什么？.md)\n\n- [select，poll 和 epoll 的区别？](https://github.com/oscarwin/interview/blob/master/doc/select，poll和epoll的区别？)\n\n## HTTP/HTTPS\n\n- [HTTP 和 HTTPS 的区别？](https://github.com/oscarwin/interview/blob/master/doc/HTTP和HTTPS的区别？.md)\n\n- [HTTP 返回码？请求头的结构？请求方法？哪些是幂等的？](https://github.com/oscarwin/interview/blob/master/doc/HTTP返回码？请求头的结构？请求方法？哪些是幂等的？)\n\n- [HTTPS 如何加密的？](https://github.com/oscarwin/interview/blob/master/doc/HTTPS如何加密的？.md)\n\n- [GET 和 POST 的区别？](https://github.com/oscarwin/interview/blob/master/doc/GET和POST的区别？.md)\n\n## 网络安全\n\n## 操作系统\n\n- [进程与线程的区别？](https://github.com/oscarwin/interview/blob/master/doc/进程与线程的区别？.md)\n\n- [多进程程序与多线程程序的选择](https://github.com/oscarwin/interview/blob/master/doc/多进程程序与多线程程序的选择？.md)\n\n- [什么是孤儿进程？什么是僵尸进程？如何找出系统中的僵尸进程？](https://github.com/oscarwin/interview/blob/master/doc/什么是孤儿进程？什么是僵尸进程？如何找出系统中的僵尸进程？.md)\n\n- [多线程fork后，子进程中线程的数量与父进程的线程数量相同吗？](https://github.com/oscarwin/interview/blob/master/doc/多线程fork后，子进程中线程的数量与父进程的线程数量相同吗？.md)\n\n- [虚拟内存](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)\n\n- [死锁](https://github.com/oscarwin/interview/blob/master/doc/死锁.md)\n\n- [Linux 内核的内存管理算法]()\n\n## 分布式\n\n- [令牌桶限流算法]()\n\n- [缓存与数据库之前如何保证数据一致性]\n\n- [什么是缓存击穿？什么是缓存穿透？热点数据缓存？]\n\n- [什么是一致性哈希？有什么作用？](https://blog.csdn.net/cywosp/article/details/23397179)\n\n## 语言\n\n### Python\n\n### Go\n\n### C++\n\n- [static关键词的作用](https://github.com/oscarwin/interview/blob/master/doc/static关键词的作用.md)\n\n- [new与malloc的区别以及实现方法](https://github.com/oscarwin/interview/blob/master/doc/new与malloc的区别以及实现方法.md)\n\n- [多态与虚函数表](https://github.com/oscarwin/interview/blob/master/doc/多态与虚函数表.md)\n\n- [智能指针]\n\n## 系统设计题\n\n- [请解释下为什么鹿晗发布恋情的时候，微博系统会崩溃，如何解决？](https://github.com/oscarwin/interview/blob/master/doc/请解释下为什么鹿晗发布恋情的时候，微博系统会崩溃，如何解决？.md)\n\n- [如何避免向用户重复推送同一篇文章？]()\n\n- [微信扫码登录实现？]\n\n## 数据结构与算法\n\n- 常考链表题\n\n- 常考树题\n\n- 有一副扑克牌，按照如下规则把它堆放在桌上。(1) 拿出最上面一张放在桌上，(2) 接来下的一张放到扑克牌的最下面，(3) 重复过程1和2，直到牌发完。先已经桌上手牌的顺序，求扑克牌原来的顺序\n\n- 两数之和\n\n- [什么是满二叉树？什么是完全二叉树？](https://www.jianshu.com/p/ac95b5a7de8b)\n\n- string转float\n\n## 智力题\n\n- [两根不均匀的香1小时烧完，怎么得到15分钟？](https://github.com/oscarwin/interview/blob/master/doc/两根不均匀的香1小时烧完，怎么得到15分钟？.md)\n\n- [在一个房间内有三盏灯，三个开关在门外，门外看不到门内的情况，你只能进房间一次，你会怎么样判断出哪一个开关控制哪盏灯？]","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarwin%2Finterview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foscarwin%2Finterview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarwin%2Finterview/lists"}