leetcode经典编程题目(Java实现)-持续更新

字符串

【palindrome-partitioning】(回溯算法)
【valid-palindrome】(双指针)
【最小覆盖子串】html


数组

【two-sum】(哈希)
【surrounded-regions】(DFS)
【longest-consecutive-sequence】(并查集)
【best-time-to-buy-and-sell-stock】(贪心算法)
【best-time-to-buy-and-sell-stock-ii】(贪心算法)
【best-time-to-buy-and-sell-stock-iii】(贪心算法)
【买卖股票的最佳时机IV】
【最佳买卖股票时机含冷冻期】
【买卖股票的最佳时机含手续费】
【pascals-triangle】
【pascals-triangle-ii】
【寻找旋转排序数组中的最小值】
【搜索旋转排序数组】
【搜索旋转排序数组II】
【滑动窗口最大值】node


查找

【word-ladder(BFS)】web

 

【evaluate-reverse-polish-notation】算法

 

链表

【sort-list】
【insertion-sort-list】
【reorder-list】
【linked-list-cycle-ii】
【linked-list-cycle】
【copy-list-with-random-pointer】数组


【Minimum Depth of Binary Tree】
【binary-tree-postorder-traversal】
【binary-tree-preorder-traversal】
【binary-tree-inorder-traversal】
【sum-root-to-leaf-numbers】
【binary-tree-maximum-path-sum】(DFS)
【populating-next-right-pointers-in-each-node】
【populating-next-right-pointers-in-each-node-ii】
【path-sum】
【path-sum-ii】
【balanced-binary-tree】
【convert-sorted-array-to-binary-search-tree】
【convert-sorted-list-to-binary-search-tree】
【binary-tree-level-order-traversal】
【binary-tree-level-order-traversal-ii】
【construct-binary-tree-from-inorder-and-postorder-traversal】
【construct-binary-tree-from-preorder-and-inorder-traversal】
【maximum-depth-of-binary-tree】
【binary-tree-zigzag-level-order-traversal】
【same-tree】
【symmetric-tree】
【validate-binary-search-tree】
【recover-binary-search-tree】
【二叉搜索树的最近公共祖先】
【二叉树的最近公共祖先】dom

 

穷举法

【max-points-on-a-line(Java)】svg


回溯

【组合总和】
【组合总和II】
【组合总和III】
【组合总和IV】(动态规划求解)post

 

动态规划

【word-break】
【word-break-ii】
【candy】
【palindrome-partitioning-ii】
【triangle】
【distinct-subsequences】
【interleaving-string】
【最长上升子序列】
【最长递增子序列的个数】
【矩阵中的最长递增路径】
【打家劫舍】
【打家劫舍II】
【打家劫舍III】lua

 

位运算

【single-number】
【single-number-ii】.net

 

贪心算法

【gas-station】


【clone-graph】



时间&空间复杂度分析方法

参考:时间复杂度&空间复杂度分析

 
 
 
 
 
题目来自:
【牛客-leetcode经典题目】
【leetcode题目】

更多参考:
【leetcode-大牛刷题记录】