{"id":20279545,"url":"https://github.com/xukeawsl/codinginterviewchinese2-cpp","last_synced_at":"2025-10-13T15:10:12.790Z","repository":{"id":220336985,"uuid":"750888828","full_name":"xukeawsl/CodingInterviewChinese2-Cpp","owner":"xukeawsl","description":"《剑指Offer：名企面试官精讲典型编程面试题》第二版的 C++ 实现","archived":false,"fork":false,"pushed_at":"2024-02-03T06:20:17.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T02:41:24.489Z","etag":null,"topics":["cpp","solutions"],"latest_commit_sha":null,"homepage":"","language":null,"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/xukeawsl.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":"2024-01-31T14:23:12.000Z","updated_at":"2024-06-07T13:57:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"11d20a0a-0505-4443-920b-ce1bab478e54","html_url":"https://github.com/xukeawsl/CodingInterviewChinese2-Cpp","commit_stats":null,"previous_names":["xukeawsl/codinginterviewchinese2-cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xukeawsl/CodingInterviewChinese2-Cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xukeawsl%2FCodingInterviewChinese2-Cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xukeawsl%2FCodingInterviewChinese2-Cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xukeawsl%2FCodingInterviewChinese2-Cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xukeawsl%2FCodingInterviewChinese2-Cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xukeawsl","download_url":"https://codeload.github.com/xukeawsl/CodingInterviewChinese2-Cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xukeawsl%2FCodingInterviewChinese2-Cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015904,"owners_count":26085777,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpp","solutions"],"created_at":"2024-11-14T13:31:21.309Z","updated_at":"2025-10-13T15:10:12.748Z","avatar_url":"https://github.com/xukeawsl.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodingInterviewChinese2-Cpp\n\n## 简介\n\n《剑指Offer：名企面试官精讲典型编程面试题》第二版的 C++ 实现\n\n## 题单\n\n[面试题 3：数组中重复的数字](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%203%EF%BC%9A%E6%95%B0%E7%BB%84%E4%B8%AD%E9%87%8D%E5%A4%8D%E7%9A%84%E6%95%B0%E5%AD%97.md)\n\n[面试题 4：二维数组中的查找](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%204%EF%BC%9A%E4%BA%8C%E7%BB%B4%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E6%9F%A5%E6%89%BE.md)\n\n[面试题 5：替换空格](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%205%EF%BC%9A%E6%9B%BF%E6%8D%A2%E7%A9%BA%E6%A0%BC.md)\n\n[面试题 6：从尾到头打印链表](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%206%EF%BC%9A%E4%BB%8E%E5%B0%BE%E5%88%B0%E5%A4%B4%E6%89%93%E5%8D%B0%E9%93%BE%E8%A1%A8.md)\n\n[面试题 7：重建二叉树](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%207%EF%BC%9A%E9%87%8D%E5%BB%BA%E4%BA%8C%E5%8F%89%E6%A0%91.md)\n\n[面试题 8：二叉树的下一个节点](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%208%EF%BC%9A%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E4%B8%8B%E4%B8%80%E4%B8%AA%E8%8A%82%E7%82%B9.md)\n\n[面试题 9：用两个栈实现队列](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%209%EF%BC%9A%E7%94%A8%E4%B8%A4%E4%B8%AA%E6%A0%88%E5%AE%9E%E7%8E%B0%E9%98%9F%E5%88%97.md)\n\n[面试题 10：斐波那契数列](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2010%EF%BC%9A%E6%96%90%E6%B3%A2%E9%82%A3%E5%A5%91%E6%95%B0%E5%88%97.md)\n\n[面试题 11：旋转数组的最小数字](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2011%EF%BC%9A%E6%97%8B%E8%BD%AC%E6%95%B0%E7%BB%84%E7%9A%84%E6%9C%80%E5%B0%8F%E6%95%B0%E5%AD%97.md)\n\n[面试题 12：矩阵中的路径](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2012%EF%BC%9A%E7%9F%A9%E9%98%B5%E4%B8%AD%E7%9A%84%E8%B7%AF%E5%BE%84.md)\n\n[面试题 13：机器人的运动范围](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2013%EF%BC%9A%E6%9C%BA%E5%99%A8%E4%BA%BA%E7%9A%84%E8%BF%90%E5%8A%A8%E8%8C%83%E5%9B%B4.md)\n\n[面试题 14：剪绳子](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2014%EF%BC%9A%E5%89%AA%E7%BB%B3%E5%AD%90.md)\n\n[面试题 15：二进制中 1 的个数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2015%EF%BC%9A%E4%BA%8C%E8%BF%9B%E5%88%B6%E4%B8%AD%201%20%E7%9A%84%E4%B8%AA%E6%95%B0.md)\n\n[面试题 16：数值的整数次方](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2016%EF%BC%9A%E6%95%B0%E5%80%BC%E7%9A%84%E6%95%B4%E6%95%B0%E6%AC%A1%E6%96%B9.md)\n\n[面试题 17：打印从 1 到最大的 n 位数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2017%EF%BC%9A%E6%89%93%E5%8D%B0%E4%BB%8E%201%20%E5%88%B0%E6%9C%80%E5%A4%A7%E7%9A%84%20n%20%E4%BD%8D%E6%95%B0.md)\n\n[面试题 18：删除链表的节点](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2018%EF%BC%9A%E5%88%A0%E9%99%A4%E9%93%BE%E8%A1%A8%E7%9A%84%E8%8A%82%E7%82%B9.md)\n\n[面试题 19：正则表达式匹配](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2019%EF%BC%9A%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%8C%B9%E9%85%8D.md)\n\n[面试题 20：表示数值的字符串](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2020%EF%BC%9A%E8%A1%A8%E7%A4%BA%E6%95%B0%E5%80%BC%E7%9A%84%E5%AD%97%E7%AC%A6%E4%B8%B2.md)\n\n[面试题 21：调整数组顺序使奇数位于偶数前面](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2021%EF%BC%9A%E8%B0%83%E6%95%B4%E6%95%B0%E7%BB%84%E9%A1%BA%E5%BA%8F%E4%BD%BF%E5%A5%87%E6%95%B0%E4%BD%8D%E4%BA%8E%E5%81%B6%E6%95%B0%E5%89%8D%E9%9D%A2.md)\n\n[面试题 22：链表中倒数第 k 个节点](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2022%EF%BC%9A%E9%93%BE%E8%A1%A8%E4%B8%AD%E5%80%92%E6%95%B0%E7%AC%AC%20k%20%E4%B8%AA%E8%8A%82%E7%82%B9.md)\n\n[面试题 23：链表中环的入口节点](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2023%EF%BC%9A%E9%93%BE%E8%A1%A8%E4%B8%AD%E7%8E%AF%E7%9A%84%E5%85%A5%E5%8F%A3%E8%8A%82%E7%82%B9.md)\n\n[面试题 24：反转链表](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2024%EF%BC%9A%E5%8F%8D%E8%BD%AC%E9%93%BE%E8%A1%A8.md)\n\n[面试题 25：合并两个排序的链表](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2025%EF%BC%9A%E5%90%88%E5%B9%B6%E4%B8%A4%E4%B8%AA%E6%8E%92%E5%BA%8F%E7%9A%84%E9%93%BE%E8%A1%A8.md)\n\n[面试题 26：树的子结构](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2026%EF%BC%9A%E6%A0%91%E7%9A%84%E5%AD%90%E7%BB%93%E6%9E%84.md)\n\n[面试题 27：二叉树的镜像](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2027%EF%BC%9A%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E9%95%9C%E5%83%8F.md)\n\n[面试题 28：对称的二叉树](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2028%EF%BC%9A%E5%AF%B9%E7%A7%B0%E7%9A%84%E4%BA%8C%E5%8F%89%E6%A0%91.md)\n\n[面试题 29：顺时针打印矩阵](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2029%EF%BC%9A%E9%A1%BA%E6%97%B6%E9%92%88%E6%89%93%E5%8D%B0%E7%9F%A9%E9%98%B5.md)\n\n[面试题 30：包含 min 函数的栈](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2030%EF%BC%9A%E5%8C%85%E5%90%AB%20min%20%E5%87%BD%E6%95%B0%E7%9A%84%E6%A0%88.md)\n\n[面试题 31：栈的压入、弹出序列](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2031%EF%BC%9A%E6%A0%88%E7%9A%84%E5%8E%8B%E5%85%A5%E3%80%81%E5%BC%B9%E5%87%BA%E5%BA%8F%E5%88%97.md)\n\n[面试题 32：从上到下打印二叉树](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2032%EF%BC%9A%E4%BB%8E%E4%B8%8A%E5%88%B0%E4%B8%8B%E6%89%93%E5%8D%B0%E4%BA%8C%E5%8F%89%E6%A0%91.md)\n\n[面试题 33：二叉搜索树的后序遍历序列](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2033%EF%BC%9A%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E7%9A%84%E5%90%8E%E5%BA%8F%E9%81%8D%E5%8E%86%E5%BA%8F%E5%88%97.md)\n\n[面试题 34：二叉树中和为某一值的路径](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2034%EF%BC%9A%E4%BA%8C%E5%8F%89%E6%A0%91%E4%B8%AD%E5%92%8C%E4%B8%BA%E6%9F%90%E4%B8%80%E5%80%BC%E7%9A%84%E8%B7%AF%E5%BE%84.md)\n\n[面试题 35：复杂链表的复制](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2035%EF%BC%9A%E5%A4%8D%E6%9D%82%E9%93%BE%E8%A1%A8%E7%9A%84%E5%A4%8D%E5%88%B6.md)\n\n[面试题 36：二叉搜索树和双向链表](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2036%EF%BC%9A%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E5%92%8C%E5%8F%8C%E5%90%91%E9%93%BE%E8%A1%A8.md)\n\n[面试题 37：序列化二叉树](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2037%EF%BC%9A%E5%BA%8F%E5%88%97%E5%8C%96%E4%BA%8C%E5%8F%89%E6%A0%91.md)\n\n[面试题 38：字符串的排列](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2038%EF%BC%9A%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9A%84%E6%8E%92%E5%88%97.md)\n\n[面试题 39：数组中出现次数超过一半的数字](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2039%EF%BC%9A%E6%95%B0%E7%BB%84%E4%B8%AD%E5%87%BA%E7%8E%B0%E6%AC%A1%E6%95%B0%E8%B6%85%E8%BF%87%E4%B8%80%E5%8D%8A%E7%9A%84%E6%95%B0%E5%AD%97.md)\n\n[面试题 40：最小的 k 个数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2040%EF%BC%9A%E6%9C%80%E5%B0%8F%E7%9A%84%20k%20%E4%B8%AA%E6%95%B0.md)\n\n[面试题 41：数据流中的中位数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2041%EF%BC%9A%E6%95%B0%E6%8D%AE%E6%B5%81%E4%B8%AD%E7%9A%84%E4%B8%AD%E4%BD%8D%E6%95%B0.md)\n\n[面试题 42：连续子数组的最大和](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2042%EF%BC%9A%E8%BF%9E%E7%BB%AD%E5%AD%90%E6%95%B0%E7%BB%84%E7%9A%84%E6%9C%80%E5%A4%A7%E5%92%8C.md)\n\n[面试题 43：1 ~ n 整数中 1 出现的次数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2043%EF%BC%9A1%20_%20n%20%E6%95%B4%E6%95%B0%E4%B8%AD%201%20%E5%87%BA%E7%8E%B0%E7%9A%84%E6%AC%A1%E6%95%B0.md)\n\n[面试题 44：数字序列中某一位的数字](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2044%EF%BC%9A%E6%95%B0%E5%AD%97%E5%BA%8F%E5%88%97%E4%B8%AD%E6%9F%90%E4%B8%80%E4%BD%8D%E7%9A%84%E6%95%B0%E5%AD%97.md)\n\n[面试题 45：把数组排成最小的数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2045%EF%BC%9A%E6%8A%8A%E6%95%B0%E7%BB%84%E6%8E%92%E6%88%90%E6%9C%80%E5%B0%8F%E7%9A%84%E6%95%B0.md)\n\n[面试题 46：把数字翻译成字符串](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2046%EF%BC%9A%E6%8A%8A%E6%95%B0%E5%AD%97%E7%BF%BB%E8%AF%91%E6%88%90%E5%AD%97%E7%AC%A6%E4%B8%B2.md)\n\n[面试题 47：礼物的最大值](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2047%EF%BC%9A%E7%A4%BC%E7%89%A9%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BC.md)\n\n[面试题 48：最长不包含重复字符的子字符串](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2048%EF%BC%9A%E6%9C%80%E9%95%BF%E4%B8%8D%E5%8C%85%E5%90%AB%E9%87%8D%E5%A4%8D%E5%AD%97%E7%AC%A6%E7%9A%84%E5%AD%90%E5%AD%97%E7%AC%A6%E4%B8%B2.md)\n\n[面试题 49：丑数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2049%EF%BC%9A%E4%B8%91%E6%95%B0.md)\n\n[面试题 50：字符串中第一个只出现一次的字符](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2050%EF%BC%9A%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%AD%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%8F%AA%E5%87%BA%E7%8E%B0%E4%B8%80%E6%AC%A1%E7%9A%84%E5%AD%97%E7%AC%A6.md)\n\n[面试题 51：数组中的逆序对](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2051%EF%BC%9A%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E9%80%86%E5%BA%8F%E5%AF%B9.md)\n\n[面试题 52：两个链表的第一个公共节点](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2052%EF%BC%9A%E4%B8%A4%E4%B8%AA%E9%93%BE%E8%A1%A8%E7%9A%84%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%85%AC%E5%85%B1%E8%8A%82%E7%82%B9.md)\n\n[面试题 53：在排序数组中查找数字](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2053%EF%BC%9A%E5%9C%A8%E6%8E%92%E5%BA%8F%E6%95%B0%E7%BB%84%E4%B8%AD%E6%9F%A5%E6%89%BE%E6%95%B0%E5%AD%97.md)\n\n[面试题 54：二叉搜索树的第 k 大节点](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2054%EF%BC%9A%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E7%9A%84%E7%AC%AC%20k%20%E5%A4%A7%E8%8A%82%E7%82%B9.md)\n\n[面试题 55：二叉树的深度](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2055%EF%BC%9A%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E6%B7%B1%E5%BA%A6.md)\n\n[面试题 56：数组中数字出现的次数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2056%EF%BC%9A%E6%95%B0%E7%BB%84%E4%B8%AD%E6%95%B0%E5%AD%97%E5%87%BA%E7%8E%B0%E7%9A%84%E6%AC%A1%E6%95%B0.md)\n\n[面试题 57：和为 s 的数字](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2057%EF%BC%9A%E5%92%8C%E4%B8%BA%20s%20%E7%9A%84%E6%95%B0%E5%AD%97.md)\n\n[面试题 58：翻转字符串](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2058%EF%BC%9A%E7%BF%BB%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2.md)\n\n[面试题 59：队列的最大值](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2059%EF%BC%9A%E9%98%9F%E5%88%97%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BC.md)\n\n[面试题 60：n 个骰子的点数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2060%EF%BC%9An%20%E4%B8%AA%E9%AA%B0%E5%AD%90%E7%9A%84%E7%82%B9%E6%95%B0.md)\n\n[面试题 61：扑克牌中的顺子](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2061%EF%BC%9A%E6%89%91%E5%85%8B%E7%89%8C%E4%B8%AD%E7%9A%84%E9%A1%BA%E5%AD%90.md)\n\n[面试题 62：圆圈中最后剩下的数字](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2062%EF%BC%9A%E5%9C%86%E5%9C%88%E4%B8%AD%E6%9C%80%E5%90%8E%E5%89%A9%E4%B8%8B%E7%9A%84%E6%95%B0%E5%AD%97.md)\n\n[面试题 63：股票的最大利润](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2063%EF%BC%9A%E8%82%A1%E7%A5%A8%E7%9A%84%E6%9C%80%E5%A4%A7%E5%88%A9%E6%B6%A6.md)\n\n[面试题 65：不用加减乘除做加法](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2065%EF%BC%9A%E4%B8%8D%E7%94%A8%E5%8A%A0%E5%87%8F%E4%B9%98%E9%99%A4%E5%81%9A%E5%8A%A0%E6%B3%95.md)\n\n[面试题 64：求 1+2+...+n](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2064%EF%BC%9A%E6%B1%82%201%2B2%2B...%2Bn.md)\n\n[面试题 66：构建乘积数组](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2066%EF%BC%9A%E6%9E%84%E5%BB%BA%E4%B9%98%E7%A7%AF%E6%95%B0%E7%BB%84.md)\n\n[面试题 67：把字符串转换成整数](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2067%EF%BC%9A%E6%8A%8A%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%BD%AC%E6%8D%A2%E6%88%90%E6%95%B4%E6%95%B0.md)\n\n[面试题 68：树中两个节点的最低公共祖先](https://github.com/xukeawsl/CodingInterviewChinese2-Cpp/blob/master/Solutions/%E9%9D%A2%E8%AF%95%E9%A2%98%2068%EF%BC%9A%E6%A0%91%E4%B8%AD%E4%B8%A4%E4%B8%AA%E8%8A%82%E7%82%B9%E7%9A%84%E6%9C%80%E4%BD%8E%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxukeawsl%2Fcodinginterviewchinese2-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxukeawsl%2Fcodinginterviewchinese2-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxukeawsl%2Fcodinginterviewchinese2-cpp/lists"}