S拾光小舟
首页归档标签分类类型关于
首页归档标签分类类型关于
  • 15. 三数之和
    代码片段
    ShawneLeo收录于algorithm

    排序加去重加双指针求三数之和为零的元组

    2026年9月8日·2 分钟·937 字tech/algorithmtech/cpptopic/arraytopic/two-pointerstopic/sortingtopic/deduplication阅读全文 »
  • 160. 相交链表
    代码片段
    ShawneLeo收录于algorithm

    双指针切换链表头找相交结点

    2026年9月8日·2 分钟·678 字tech/algorithmtech/cpptopic/linked-listtopic/two-pointers阅读全文 »
  • 19. 删除链表的倒数第 N 个结点
    代码片段
    ShawneLeo收录于algorithm

    快慢指针加虚拟头节点删除倒数第 N 个结点

    2026年9月8日·2 分钟·633 字tech/algorithmtech/cpptopic/linked-listtopic/two-pointerstopic/dummy-node阅读全文 »
  • 202. 快乐数
    代码片段
    ShawneLeo收录于algorithm

    哈希集合循环检测判断快乐数

    2026年9月8日·2 分钟·826 字tech/algorithmtech/cpptopic/hash-tabletopic/mathtopic/cycle-detection阅读全文 »
  • 203. 移除链表元素
    代码片段
    ShawneLeo收录于algorithm

    虚拟头节点删除链表中等于给定值的结点

    2026年9月8日·2 分钟·696 字tech/algorithmtech/cpptopic/linked-listtopic/dummy-nodetopic/two-pointers阅读全文 »
  • 206. 反转链表
    代码片段
    ShawneLeo收录于algorithm

    三指针迭代加递归反转单链表

    2026年9月8日·1 分钟·575 字tech/algorithmtech/cpptopic/linked-listtopic/two-pointerstopic/recursion阅读全文 »
  • 209. 长度最小的子数组
    代码片段
    ShawneLeo收录于algorithm

    滑动窗口求满足和的最短连续子数组

    2026年9月8日·3 分钟·1157 字tech/algorithmtech/cpptopic/arraytopic/sliding-windowtopic/two-pointerstopic/prefix-sum阅读全文 »
  • 242. 有效的字母异位词
    代码片段
    ShawneLeo收录于algorithm

    字符频率计数判断两个字符串是否为字母异位词

    2026年9月8日·2 分钟·737 字tech/algorithmtech/cpptopic/stringtopic/hash-tabletopic/counting阅读全文 »
  • 27. 移除元素
    代码片段
    ShawneLeo收录于algorithm

    快慢指针原地移除指定元素

    2026年9月8日·2 分钟·887 字tech/algorithmtech/cpptopic/arraytopic/two-pointerstopic/in-place阅读全文 »
  • 3. 无重复字符的最长子串
    代码片段
    ShawneLeo收录于algorithm

    滑动窗口加哈希表求最长无重复子串

    2026年9月8日·2 分钟·756 字tech/algorithmtech/cpptopic/stringtopic/sliding-windowtopic/two-pointerstopic/hash-table阅读全文 »
← 上一页3 / 9 · 共 88 篇下一页 →
由 Astro 强力驱动· RSS 订阅· 站点地图
© 2026 ShawneLeo · CC BY-NC 4.0