返回介绍

術語表

发布于 2025-02-22 13:01:37 字数 2709 浏览 0 评论 0 收藏 0

BFS

Breadth-First Search, 广度优先搜索

  • 13.5. Binary Tree Level Order Traversal II
  • 15. Exhaustive Search
  • 17.5. Bipartial Graph Part I
  • 17.1. Find the Connected Component in the Undirected Graph
  • 17.2. Route Between Two Nodes in Graph
  • 17.3. Topological Sorting
  • 17.4. Word Ladder

DFS

Depth-First Search, 深度优先搜索

  • 16.23. Longest Increasing Continuous subsequence
  • 16.24. Longest Increasing Continuous subsequence II
  • 16.4. Minimum Path Sum
  • 16.1. Triangle
  • 13.4. Binary Tree Level Order Traversal
  • 15. Exhaustive Search
  • 15.12. Combinations
  • 15.15. Minimum Depth of Binary Tree
  • 15.11. Palindrome Partitioning
  • 15.3. Permutations
  • 15.1. Subsets
  • 15.10. Unique Binary Search Trees II
  • 15.2. Unique Subsets
  • 15.16. Word Search
  • 21.2.1. Problem A. Dynamic Grid
  • 17.1. Find the Connected Component in the Undirected Graph
  • 17.2. Route Between Two Nodes in Graph
  • 17.3. Topological Sorting
  • 11.14. Print Numbers by Recursion
  • 8.11. Wildcard Matching

DP_Matrix

根据动态规划解题的四要素,矩阵类动态规划问题通常可用 f[x][y] 表示从起点走到坐标(x,y) 的值

  • 16.4. Minimum Path Sum
  • 16.5. Unique Paths
  • 16.6. Unique Paths II

DP_Sequence

单序列动态规划,通常使用 f[i] 表示前 i 个位置/数字/字母... 使用 f[n-1] 表示最后返回结果。

  • 16. Dynamic Programming
  • 16.10. Longest Increasing Subsequence
  • 16.11. Palindrome Partitioning II
  • 16.9. Word Break

DP_Two_Sequence

一般有两个数组或者两个字符串,计算其匹配关系. 通常可用 `f[i][j]`表示第一个数组的前 i 位和第二个数组的前 j 位的关系。

  • 16.12. Longest Common Subsequence
  • 16. Dynamic Programming
  • 16.19. Distinct Subsequences
  • 16.13. Edit Distance

TLE

Time Limit Exceeded 的简称。你的程序在 OJ 上的运行时间太长了,超过了对应题目的时间限制。

  • 16.18. Best Time to Buy and Sell Stock IV
  • 16.8. Jump Game
  • 16.14. Jump Game II
  • 16.4. Minimum Path Sum
  • 16.11. Palindrome Partitioning II
  • 1.1. Guidelines for Contributing
  • 17.4. Word Ladder
  • 9.2. Zero Sum Subarray
  • 12.15. Copy List with Random Pointer
  • 12.17. Insertion Sort List
  • 12.13. Merge k Sorted Lists
  • 12.18. Palindrome Linked List
  • 12.14. Reorder List
  • 11.10. Hash Function
  • 11.19. Ugly Number
  • 8.9. Longest Palindromic Substring
  • 8.4. Anagrams

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文