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

字符串

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


数组

【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】
【滑动窗口最大值】


查找

【word-ladder(BFS)】

 

【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】
【二叉搜索树的最近公共祖先】
【二叉树的最近公共祖先】

 

穷举法

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


回溯

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

 

动态规划

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

 

位运算

【single-number】
【single-number-ii】

 

贪心算法

【gas-station】


【clone-graph】



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

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

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

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

  • 1
    点赞
  • 31
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值