剑指Offer整理(JS实现)

207 阅读2分钟
  1. 二维数组中的查找
    github.com/pengjielee/…

  2. 替换空格
    github.com/pengjielee/…

  3. 从尾到头打印链表
    github.com/pengjielee/…

  4. 重建二叉树
    github.com/pengjielee/…

  5. 用两个栈实现队列
    github.com/pengjielee/…

  6. 旋转数组的最小数字
    github.com/pengjielee/…

  7. 斐波那契数列
    github.com/pengjielee/…

  8. 跳台阶
    github.com/pengjielee/…

  9. 变态跳台阶
    github.com/pengjielee/…

  10. 矩形覆盖
    github.com/pengjielee/…

  11. 二进制中1的个数
    github.com/pengjielee/…

  12. 数值的整数次方
    github.com/pengjielee/…

  13. 调整数组顺序使奇数位于偶数前面
    github.com/pengjielee/…

  14. 链表中倒数第k个结点
    github.com/pengjielee/…

  15. 反转链表
    github.com/pengjielee/…

  16. 合并两个排序的链表
    github.com/pengjielee/…

  17. 树的子结构
    github.com/pengjielee/…

  18. 二叉树的镜像
    github.com/pengjielee/…

  19. 顺时针打印矩阵
    github.com/pengjielee/…

  20. 包含min函数的栈
    github.com/pengjielee/…

  21. 栈的压入、弹出序列
    github.com/pengjielee/…

  22. 从上往下打印二叉树
    github.com/pengjielee/…

  23. 二叉搜索树的后序遍历序列
    github.com/pengjielee/…

  24. 二叉树中和为某一值的路径
    github.com/pengjielee/…

  25. 复杂链表的复制
    github.com/pengjielee/…

  26. 二叉搜索树与双向链表
    github.com/pengjielee/…

  27. 字符串的排列(未完成)
    github.com/pengjielee/…

  28. 数组中出现次数超过一半的数字
    github.com/pengjielee/…

  29. 最小的K个数
    github.com/pengjielee/…

  30. 连续子数组的最大和
    github.com/pengjielee/…

  31. 整数中1出现的次数(从1到n整数中1出现的次数)(未完成)
    github.com/pengjielee/…

  32. 把数组排成最小的数
    github.com/pengjielee/…

  33. 丑数
    github.com/pengjielee/…

  34. 第一个只出现一次的字符位置
    github.com/pengjielee/…

  35. 数组中的逆序对
    github.com/pengjielee/…

  36. 两个链表的第一个公共结点
    github.com/pengjielee/…

  37. 数字在排序数组中出现的次数
    github.com/pengjielee/…

  38. 二叉树的深度
    github.com/pengjielee/…

  39. 平衡二叉树
    github.com/pengjielee/…

  40. 数组中只出现一次的数字
    github.com/pengjielee/…

  41. 和为S的连续正数序列
    github.com/pengjielee/…

  42. 和为S的两个数字
    github.com/pengjielee/…

  43. 左旋转字符串
    github.com/pengjielee/…

  44. 翻转单词顺序列
    github.com/pengjielee/…

  45. 扑克牌顺子
    github.com/pengjielee/…

  46. 孩子们的游戏(圆圈中最后剩下的数)(未完成)
    github.com/pengjielee/…

  47. 求1+2+3+. . . +n
    github.com/pengjielee/…

  48. 不用加减乘除做加法
    github.com/pengjielee/…

  49. 把字符串转换成整数
    github.com/pengjielee/…

  50. 数组中重复的数字
    github.com/pengjielee/…

  51. 构建乘积数组
    github.com/pengjielee/…

  52. 正则表达式匹配(未完成)
    github.com/pengjielee/…

  53. 表示数值的字符串
    github.com/pengjielee/…

  54. 字符流中第一个不重复的字符
    github.com/pengjielee/…

  55. 链表中环的入口结点(未完成)
    github.com/pengjielee/…

  56. 删除链表中重复的结点
    github.com/pengjielee/…

  57. 二叉树的下一个结点
    github.com/pengjielee/…

  58. 对称的二叉树
    github.com/pengjielee/…

  59. 按之字形顺序打印二叉树
    github.com/pengjielee/…

  60. 把二叉树打印成多行
    github.com/pengjielee/…

  61. 序列化二叉树
    github.com/pengjielee/…

  62. 二叉搜索树的第k个结点
    github.com/pengjielee/…

  63. 数据流中的中位数
    github.com/pengjielee/…

  64. 滑动窗口的最大值(未完成)
    github.com/pengjielee/…

  65. 矩阵中的路径(未完成)
    github.com/pengjielee/…

  66. 机器人的运动范围
    github.com/pengjielee/…

  67. 剪绳子
    github.com/pengjielee/…