leetcode之递归、贪心、图论、分治总结(C++)

基础知识:

          递归:这里的递归主要是DFS,就是以相同的操作,去操作每一个元素。

          贪心:贪心算法主要是将所求的结果最大化或者最小化。

          图论:https://blog.csdn.net/L_smartworld/article/details/107504915

          分治:分治就是将问题分成一块一块,然后进行解决。典型分治算法利用就是快排和归并排序。

 

以下是力扣1-150中的题目:

 

博客链接:

递归:

10.正则表达式匹配:https://blog.csdn.net/L_smartworld/article/details/106547324
29.两数相除:https://blog.csdn.net/L_smartworld/article/details/106683144

贪心:

12.整数转罗马数字:https://blog.csdn.net/L_smartworld/article/details/106564956
44.通配符匹配:https://blog.csdn.net/L_smartworld/article/details/106871682
45.跳跃游戏 II:https://blog.csdn.net/L_smartworld/article/details/106902050
55.跳跃游戏:https://blog.csdn.net/L_smartworld/article/details/106966388
121.买卖股票的最佳时机:https://blog.csdn.net/L_smartworld/article/details/107540935
122.买卖股票的最佳时机 II:https://blog.csdn.net/L_smartworld/article/details/107541268

图论:

127.单词接龙:https://blog.csdn.net/L_smartworld/article/details/107614474
133.克隆图:https://blog.csdn.net/L_smartworld/article/details/107749517

分治:

50.Pow(x, n):https://blog.csdn.net/L_smartworld/article/details/106945144

剑指offer:

39.数组中次数超过一半的数字:https://blog.csdn.net/L_smartworld/article/details/104924848
41.数据流中的中位数:https://blog.csdn.net/L_smartworld/article/details/105611689

51.数组中的逆序数对:https://blog.csdn.net/L_smartworld/article/details/105051738

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值