leetcode之双指针总结(C++)

基础知识:

          双指针一般是快慢指针向后移动,或者左右指针向中间移动。双指针:双指针法的判定条件都是while(left<right)

 

下面是力扣1-150中双指针的题:

 

博客链接:

9.回文数:https://blog.csdn.net/L_smartworld/article/details/106544060
11.盛最多水的容器:https://blog.csdn.net/L_smartworld/article/details/106549754
15.三数之和:https://blog.csdn.net/L_smartworld/article/details/106584811
16.最接近的三数之和:https://blog.csdn.net/L_smartworld/article/details/106587060
18.四数之和:https://blog.csdn.net/L_smartworld/article/details/106602247
26.删除排序数组中的重复项:https://blog.csdn.net/L_smartworld/article/details/106639684
27.移除元素:https://blog.csdn.net/L_smartworld/article/details/106640533
31.下一个排列:https://blog.csdn.net/L_smartworld/article/details/106718448
42.接雨水:https://blog.csdn.net/L_smartworld/article/details/106856881
88.合并两个有序数组:https://blog.csdn.net/L_smartworld/article/details/107319959
125.验证回文串:https://blog.csdn.net/L_smartworld/article/details/107541942

剑指offer:

5.替换空格:https://blog.csdn.net/L_smartworld/article/details/104236697
21.调整数组顺序使奇数位于偶数前面:https://blog.csdn.net/L_smartworld/article/details/104512850
57.和为S的两个数字:https://blog.csdn.net/L_smartworld/article/details/105149781

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值