├── .gitignore ├── 003-二维数组中的查找 ├── README.md ├── problem003.go └── problem003_test.go ├── 004-替换空格 ├── README.md ├── problem004.go └── problem004_test.go ├── 005-从尾到头打印链表(ing) ├── README.md └── problem005.go ├── 006-重建二叉树 ├── README.md └── problem006.go ├── 007-用两个栈实现队列 ├── README.md ├── problem007.go └── problem007_test.go ├── 008-旋转数组的最小数字 ├── README.md ├── problem008.go └── problem008_test.go ├── 009-斐波那契数列 ├── README.md ├── problem009.go └── problem009_test.go ├── 010-二进制中1的个数 ├── README.md ├── problem010.go └── problem010_test.go ├── 011-数值的整数次方 ├── README.md ├── problem011.go └── problem011_test.go ├── 012-打印1到最大的N位数 ├── README.md └── problem012.go ├── 014-调整数组顺序使奇数位于偶数前面 ├── README.md └── problem014.go ├── 015-链表中倒数第k个结点 ├── README.md └── problem015.go ├── 016-反转链表 ├── README.md └── problem016.go ├── 017-合并两个排序的链表 ├── README.md └── problem017.go ├── 018-树的子结构 ├── README.md └── problem018.go ├── 019-二叉树的镜像 ├── README.md └── problem019.go ├── 020-顺时针打印矩阵 └── README.md ├── 021-包含min函数的栈 └── README.md ├── 022-栈的压入弹出序列 ├── README.md └── problem022.go ├── 023-从上往下打印二叉树 ├── README.md └── problem023.go ├── 024-二叉搜索树的后序遍历序列 ├── README.md └── problem024.go ├── 025-二叉树中和为某一值的路径 └── README.md ├── 026-复杂链表的复制 ├── README.md └── problem026.go ├── 027-二叉搜索树与双向链表 ├── README.md └── problem027.go ├── 028-字符串的排列 ├── README.md └── problem028.go ├── 029-数组中出现次数超过一半的数字 ├── README.md ├── problem029.go └── problem029_test.go ├── 030-最小的K个数 ├── README.md └── problem030.go ├── 031-连续子数组的最大和 ├── README.md └── problem031.go ├── 032-从1到n整数中1出现的次数 ├── README.md └── problem032.go ├── 033-把数组排成最小的数 ├── README.md └── problem033.go ├── 034-丑数 ├── README.md └── problem034.go ├── 035-第一个只出现一次的字符位置 ├── README.md └── problem035.go ├── 036-数组中的逆序对 ├── README.md └── problem036.go ├── 037-两个链表的第一个公共结点 ├── README.md └── problem037.go ├── 038-数字在排序数组中出现的次数 ├── README.md └── problem038.go ├── 039-二叉树的深度 ├── README.md └── problem039.go ├── 039-平衡二叉树[附加] ├── README.md └── problem039.go ├── 040-数组中只出现一次的数字 ├── README.md └── problem040.go ├── 041-和为S的两个数字 ├── README.md └── problem041.go ├── 041-和为S的连续正数序列 ├── README.md └── problem041.go ├── 042-左旋转字符串 ├── README.md └── problem042.go ├── 042-翻转单词顺序列 ├── README.md └── problem042.go ├── 044-扑克牌顺子 ├── README.md └── problem044.go ├── 045-孩子们的游戏(圆圈中最后剩下的数) ├── README.md └── problem045.go ├── 046-求1+2+3+...+n └── README.md ├── 047-不用加减乘除做加法 ├── README.md └── problem047.go ├── 048-不能被继承的类 └── README.md ├── 049-把字符串转换成整数 ├── README.md └── problem049.go ├── 051-数组中重复的数字 ├── README.md └── problem051.go ├── 052-构建乘积数组 ├── README.md └── problem052.go ├── 053-正则表达式匹配 ├── README.md └── problem053.go ├── 054-表示数值的字符串 ├── README.md └── problem054.go ├── 055-字符流中第一个不重复的字符 ├── README.md └── problem055.go ├── 056-链表中环的入口结点 ├── README.md └── problem056.go ├── 057-删除链表中重复的结点 ├── README.md └── problem057.go ├── 058-二叉树的下一个结点 ├── README.md └── problem058.go ├── 059-对称的二叉树 ├── README.md └── problem059.go ├── 060-把二叉树打印成多行 ├── README.md └── problem060.go ├── 061-按之字形顺序打印二叉树 ├── README.md └── problem061.go ├── 062-序列化二叉树 ├── README.md └── problem062.go ├── 063-二叉搜索树的第K个结点 ├── README.md └── problem063.go ├── 064-数据流之中的中位数 ├── README.md └── problem064.go ├── 065-滑动窗口的最大值 ├── README.md └── problem065.go ├── LICENSE ├── README.md └── utils ├── maxHeap.go ├── maxHeap_test.go ├── minHeap.go ├── minHeap_test.go ├── stack.go └── stack_test.go /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea -------------------------------------------------------------------------------- /003-二维数组中的查找/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/003-二维数组中的查找/README.md -------------------------------------------------------------------------------- /003-二维数组中的查找/problem003.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/003-二维数组中的查找/problem003.go -------------------------------------------------------------------------------- /003-二维数组中的查找/problem003_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/003-二维数组中的查找/problem003_test.go -------------------------------------------------------------------------------- /004-替换空格/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/004-替换空格/README.md -------------------------------------------------------------------------------- /004-替换空格/problem004.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/004-替换空格/problem004.go -------------------------------------------------------------------------------- /004-替换空格/problem004_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/004-替换空格/problem004_test.go -------------------------------------------------------------------------------- /005-从尾到头打印链表(ing)/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/005-从尾到头打印链表(ing)/README.md -------------------------------------------------------------------------------- /005-从尾到头打印链表(ing)/problem005.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/005-从尾到头打印链表(ing)/problem005.go -------------------------------------------------------------------------------- /006-重建二叉树/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/006-重建二叉树/README.md -------------------------------------------------------------------------------- /006-重建二叉树/problem006.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/006-重建二叉树/problem006.go -------------------------------------------------------------------------------- /007-用两个栈实现队列/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/007-用两个栈实现队列/README.md -------------------------------------------------------------------------------- /007-用两个栈实现队列/problem007.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/007-用两个栈实现队列/problem007.go -------------------------------------------------------------------------------- /007-用两个栈实现队列/problem007_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/007-用两个栈实现队列/problem007_test.go -------------------------------------------------------------------------------- /008-旋转数组的最小数字/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/008-旋转数组的最小数字/README.md -------------------------------------------------------------------------------- /008-旋转数组的最小数字/problem008.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/008-旋转数组的最小数字/problem008.go -------------------------------------------------------------------------------- /008-旋转数组的最小数字/problem008_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/008-旋转数组的最小数字/problem008_test.go -------------------------------------------------------------------------------- /009-斐波那契数列/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/009-斐波那契数列/README.md -------------------------------------------------------------------------------- /009-斐波那契数列/problem009.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/009-斐波那契数列/problem009.go -------------------------------------------------------------------------------- /009-斐波那契数列/problem009_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/009-斐波那契数列/problem009_test.go -------------------------------------------------------------------------------- /010-二进制中1的个数/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/010-二进制中1的个数/README.md -------------------------------------------------------------------------------- /010-二进制中1的个数/problem010.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/010-二进制中1的个数/problem010.go -------------------------------------------------------------------------------- /010-二进制中1的个数/problem010_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/010-二进制中1的个数/problem010_test.go -------------------------------------------------------------------------------- /011-数值的整数次方/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/011-数值的整数次方/README.md -------------------------------------------------------------------------------- /011-数值的整数次方/problem011.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/011-数值的整数次方/problem011.go -------------------------------------------------------------------------------- /011-数值的整数次方/problem011_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/011-数值的整数次方/problem011_test.go -------------------------------------------------------------------------------- /012-打印1到最大的N位数/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/012-打印1到最大的N位数/README.md -------------------------------------------------------------------------------- /012-打印1到最大的N位数/problem012.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/012-打印1到最大的N位数/problem012.go -------------------------------------------------------------------------------- /014-调整数组顺序使奇数位于偶数前面/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/014-调整数组顺序使奇数位于偶数前面/README.md -------------------------------------------------------------------------------- /014-调整数组顺序使奇数位于偶数前面/problem014.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/014-调整数组顺序使奇数位于偶数前面/problem014.go -------------------------------------------------------------------------------- /015-链表中倒数第k个结点/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/015-链表中倒数第k个结点/README.md -------------------------------------------------------------------------------- /015-链表中倒数第k个结点/problem015.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/015-链表中倒数第k个结点/problem015.go -------------------------------------------------------------------------------- /016-反转链表/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/016-反转链表/README.md -------------------------------------------------------------------------------- /016-反转链表/problem016.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/016-反转链表/problem016.go -------------------------------------------------------------------------------- /017-合并两个排序的链表/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/017-合并两个排序的链表/README.md -------------------------------------------------------------------------------- /017-合并两个排序的链表/problem017.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/017-合并两个排序的链表/problem017.go -------------------------------------------------------------------------------- /018-树的子结构/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/018-树的子结构/README.md -------------------------------------------------------------------------------- /018-树的子结构/problem018.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/018-树的子结构/problem018.go -------------------------------------------------------------------------------- /019-二叉树的镜像/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/019-二叉树的镜像/README.md -------------------------------------------------------------------------------- /019-二叉树的镜像/problem019.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/019-二叉树的镜像/problem019.go -------------------------------------------------------------------------------- /020-顺时针打印矩阵/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/020-顺时针打印矩阵/README.md -------------------------------------------------------------------------------- /021-包含min函数的栈/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/021-包含min函数的栈/README.md -------------------------------------------------------------------------------- /022-栈的压入弹出序列/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/022-栈的压入弹出序列/README.md -------------------------------------------------------------------------------- /022-栈的压入弹出序列/problem022.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/022-栈的压入弹出序列/problem022.go -------------------------------------------------------------------------------- /023-从上往下打印二叉树/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/023-从上往下打印二叉树/README.md -------------------------------------------------------------------------------- /023-从上往下打印二叉树/problem023.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/023-从上往下打印二叉树/problem023.go -------------------------------------------------------------------------------- /024-二叉搜索树的后序遍历序列/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/024-二叉搜索树的后序遍历序列/README.md -------------------------------------------------------------------------------- /024-二叉搜索树的后序遍历序列/problem024.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/024-二叉搜索树的后序遍历序列/problem024.go -------------------------------------------------------------------------------- /025-二叉树中和为某一值的路径/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/025-二叉树中和为某一值的路径/README.md -------------------------------------------------------------------------------- /026-复杂链表的复制/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/026-复杂链表的复制/README.md -------------------------------------------------------------------------------- /026-复杂链表的复制/problem026.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/026-复杂链表的复制/problem026.go -------------------------------------------------------------------------------- /027-二叉搜索树与双向链表/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/027-二叉搜索树与双向链表/README.md -------------------------------------------------------------------------------- /027-二叉搜索树与双向链表/problem027.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/027-二叉搜索树与双向链表/problem027.go -------------------------------------------------------------------------------- /028-字符串的排列/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/028-字符串的排列/README.md -------------------------------------------------------------------------------- /028-字符串的排列/problem028.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/028-字符串的排列/problem028.go -------------------------------------------------------------------------------- /029-数组中出现次数超过一半的数字/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/029-数组中出现次数超过一半的数字/README.md -------------------------------------------------------------------------------- /029-数组中出现次数超过一半的数字/problem029.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/029-数组中出现次数超过一半的数字/problem029.go -------------------------------------------------------------------------------- /029-数组中出现次数超过一半的数字/problem029_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/029-数组中出现次数超过一半的数字/problem029_test.go -------------------------------------------------------------------------------- /030-最小的K个数/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/030-最小的K个数/README.md -------------------------------------------------------------------------------- /030-最小的K个数/problem030.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/030-最小的K个数/problem030.go -------------------------------------------------------------------------------- /031-连续子数组的最大和/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/031-连续子数组的最大和/README.md -------------------------------------------------------------------------------- /031-连续子数组的最大和/problem031.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/031-连续子数组的最大和/problem031.go -------------------------------------------------------------------------------- /032-从1到n整数中1出现的次数/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/032-从1到n整数中1出现的次数/README.md -------------------------------------------------------------------------------- /032-从1到n整数中1出现的次数/problem032.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/032-从1到n整数中1出现的次数/problem032.go -------------------------------------------------------------------------------- /033-把数组排成最小的数/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/033-把数组排成最小的数/README.md -------------------------------------------------------------------------------- /033-把数组排成最小的数/problem033.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/033-把数组排成最小的数/problem033.go -------------------------------------------------------------------------------- /034-丑数/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/034-丑数/README.md -------------------------------------------------------------------------------- /034-丑数/problem034.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/034-丑数/problem034.go -------------------------------------------------------------------------------- /035-第一个只出现一次的字符位置/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/035-第一个只出现一次的字符位置/README.md -------------------------------------------------------------------------------- /035-第一个只出现一次的字符位置/problem035.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/035-第一个只出现一次的字符位置/problem035.go -------------------------------------------------------------------------------- /036-数组中的逆序对/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/036-数组中的逆序对/README.md -------------------------------------------------------------------------------- /036-数组中的逆序对/problem036.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/036-数组中的逆序对/problem036.go -------------------------------------------------------------------------------- /037-两个链表的第一个公共结点/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/037-两个链表的第一个公共结点/README.md -------------------------------------------------------------------------------- /037-两个链表的第一个公共结点/problem037.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/037-两个链表的第一个公共结点/problem037.go -------------------------------------------------------------------------------- /038-数字在排序数组中出现的次数/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/038-数字在排序数组中出现的次数/README.md -------------------------------------------------------------------------------- /038-数字在排序数组中出现的次数/problem038.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/038-数字在排序数组中出现的次数/problem038.go -------------------------------------------------------------------------------- /039-二叉树的深度/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/039-二叉树的深度/README.md -------------------------------------------------------------------------------- /039-二叉树的深度/problem039.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/039-二叉树的深度/problem039.go -------------------------------------------------------------------------------- /039-平衡二叉树[附加]/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/039-平衡二叉树[附加]/README.md -------------------------------------------------------------------------------- /039-平衡二叉树[附加]/problem039.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/039-平衡二叉树[附加]/problem039.go -------------------------------------------------------------------------------- /040-数组中只出现一次的数字/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/040-数组中只出现一次的数字/README.md -------------------------------------------------------------------------------- /040-数组中只出现一次的数字/problem040.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/040-数组中只出现一次的数字/problem040.go -------------------------------------------------------------------------------- /041-和为S的两个数字/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/041-和为S的两个数字/README.md -------------------------------------------------------------------------------- /041-和为S的两个数字/problem041.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/041-和为S的两个数字/problem041.go -------------------------------------------------------------------------------- /041-和为S的连续正数序列/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/041-和为S的连续正数序列/README.md -------------------------------------------------------------------------------- /041-和为S的连续正数序列/problem041.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/041-和为S的连续正数序列/problem041.go -------------------------------------------------------------------------------- /042-左旋转字符串/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/042-左旋转字符串/README.md -------------------------------------------------------------------------------- /042-左旋转字符串/problem042.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/042-左旋转字符串/problem042.go -------------------------------------------------------------------------------- /042-翻转单词顺序列/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/042-翻转单词顺序列/README.md -------------------------------------------------------------------------------- /042-翻转单词顺序列/problem042.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/042-翻转单词顺序列/problem042.go -------------------------------------------------------------------------------- /044-扑克牌顺子/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/044-扑克牌顺子/README.md -------------------------------------------------------------------------------- /044-扑克牌顺子/problem044.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/044-扑克牌顺子/problem044.go -------------------------------------------------------------------------------- /045-孩子们的游戏(圆圈中最后剩下的数)/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/045-孩子们的游戏(圆圈中最后剩下的数)/README.md -------------------------------------------------------------------------------- /045-孩子们的游戏(圆圈中最后剩下的数)/problem045.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/045-孩子们的游戏(圆圈中最后剩下的数)/problem045.go -------------------------------------------------------------------------------- /046-求1+2+3+...+n/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/046-求1+2+3+...+n/README.md -------------------------------------------------------------------------------- /047-不用加减乘除做加法/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/047-不用加减乘除做加法/README.md -------------------------------------------------------------------------------- /047-不用加减乘除做加法/problem047.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/047-不用加减乘除做加法/problem047.go -------------------------------------------------------------------------------- /048-不能被继承的类/README.md: -------------------------------------------------------------------------------- 1 | # 题意 2 | 3 | 题目描述 4 | 5 | 设计一个不能被继承的类 6 | 7 | ## golang: 臣妾做不到 -------------------------------------------------------------------------------- /049-把字符串转换成整数/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/049-把字符串转换成整数/README.md -------------------------------------------------------------------------------- /049-把字符串转换成整数/problem049.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/049-把字符串转换成整数/problem049.go -------------------------------------------------------------------------------- /051-数组中重复的数字/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/051-数组中重复的数字/README.md -------------------------------------------------------------------------------- /051-数组中重复的数字/problem051.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/051-数组中重复的数字/problem051.go -------------------------------------------------------------------------------- /052-构建乘积数组/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/052-构建乘积数组/README.md -------------------------------------------------------------------------------- /052-构建乘积数组/problem052.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/052-构建乘积数组/problem052.go -------------------------------------------------------------------------------- /053-正则表达式匹配/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/053-正则表达式匹配/README.md -------------------------------------------------------------------------------- /053-正则表达式匹配/problem053.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/053-正则表达式匹配/problem053.go -------------------------------------------------------------------------------- /054-表示数值的字符串/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/054-表示数值的字符串/README.md -------------------------------------------------------------------------------- /054-表示数值的字符串/problem054.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/054-表示数值的字符串/problem054.go -------------------------------------------------------------------------------- /055-字符流中第一个不重复的字符/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/055-字符流中第一个不重复的字符/README.md -------------------------------------------------------------------------------- /055-字符流中第一个不重复的字符/problem055.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/055-字符流中第一个不重复的字符/problem055.go -------------------------------------------------------------------------------- /056-链表中环的入口结点/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/056-链表中环的入口结点/README.md -------------------------------------------------------------------------------- /056-链表中环的入口结点/problem056.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/056-链表中环的入口结点/problem056.go -------------------------------------------------------------------------------- /057-删除链表中重复的结点/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/057-删除链表中重复的结点/README.md -------------------------------------------------------------------------------- /057-删除链表中重复的结点/problem057.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/057-删除链表中重复的结点/problem057.go -------------------------------------------------------------------------------- /058-二叉树的下一个结点/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/058-二叉树的下一个结点/README.md -------------------------------------------------------------------------------- /058-二叉树的下一个结点/problem058.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/058-二叉树的下一个结点/problem058.go -------------------------------------------------------------------------------- /059-对称的二叉树/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/059-对称的二叉树/README.md -------------------------------------------------------------------------------- /059-对称的二叉树/problem059.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/059-对称的二叉树/problem059.go -------------------------------------------------------------------------------- /060-把二叉树打印成多行/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/060-把二叉树打印成多行/README.md -------------------------------------------------------------------------------- /060-把二叉树打印成多行/problem060.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/060-把二叉树打印成多行/problem060.go -------------------------------------------------------------------------------- /061-按之字形顺序打印二叉树/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/061-按之字形顺序打印二叉树/README.md -------------------------------------------------------------------------------- /061-按之字形顺序打印二叉树/problem061.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/061-按之字形顺序打印二叉树/problem061.go -------------------------------------------------------------------------------- /062-序列化二叉树/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/062-序列化二叉树/README.md -------------------------------------------------------------------------------- /062-序列化二叉树/problem062.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/062-序列化二叉树/problem062.go -------------------------------------------------------------------------------- /063-二叉搜索树的第K个结点/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/063-二叉搜索树的第K个结点/README.md -------------------------------------------------------------------------------- /063-二叉搜索树的第K个结点/problem063.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/063-二叉搜索树的第K个结点/problem063.go -------------------------------------------------------------------------------- /064-数据流之中的中位数/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/064-数据流之中的中位数/README.md -------------------------------------------------------------------------------- /064-数据流之中的中位数/problem064.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/064-数据流之中的中位数/problem064.go -------------------------------------------------------------------------------- /065-滑动窗口的最大值/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/065-滑动窗口的最大值/README.md -------------------------------------------------------------------------------- /065-滑动窗口的最大值/problem065.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/065-滑动窗口的最大值/problem065.go -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/README.md -------------------------------------------------------------------------------- /utils/maxHeap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/utils/maxHeap.go -------------------------------------------------------------------------------- /utils/maxHeap_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/utils/maxHeap_test.go -------------------------------------------------------------------------------- /utils/minHeap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/utils/minHeap.go -------------------------------------------------------------------------------- /utils/minHeap_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/utils/minHeap_test.go -------------------------------------------------------------------------------- /utils/stack.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/utils/stack.go -------------------------------------------------------------------------------- /utils/stack_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DinghaoLI/Coding-Interviews-Golang/HEAD/utils/stack_test.go --------------------------------------------------------------------------------