leetcode之技巧类总结(C++)

本文精选了力扣(LeetCode)中1-150题的技巧类题目,涵盖字符串操作、矩阵处理、算法优化等多个方面,提供了详细的解题思路和代码示例,帮助读者深入理解并掌握算法设计与实现。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下面是力扣1-150中的技巧类题:

 

博客链接:
6.Z字形变换:https://blog.csdn.net/L_smartworld/article/details/106526031
7.整数反转:https://blog.csdn.net/L_smartworld/article/details/106528082
8.字符串转换整数 (atoi):https://blog.csdn.net/L_smartworld/article/details/106541552
14.最长公共前缀:https://blog.csdn.net/L_smartworld/article/details/106570666
28.实现 strStr():https://blog.csdn.net/L_smartworld/article/details/106683076
38.外观数组:https://blog.csdn.net/L_smartworld/article/details/106811106
43.字符串相乘:https://blog.csdn.net/L_smartworld/article/details/106859978
48.旋转图像:https://blog.csdn.net/L_smartworld/article/details/106924673
54.螺旋矩阵:https://blog.csdn.net/L_smartworld/article/details/106959651
56.合并区间:https://blog.csdn.net/L_smartworld/article/details/106967419
57.插入区间:https://blog.csdn.net/L_smartworld/article/details/106969863
58.最后一个单词的长度:https://blog.csdn.net/L_smartworld/article/details/106970353
59.螺旋矩阵 II:https://blog.csdn.net/L_smartworld/article/details/106971311
60.第k个排列:https://blog.csdn.net/L_smartworld/article/details/106982743
66.加一:https://blog.csdn.net/L_smartworld/article/details/107184218
67.二进制求和:https://blog.csdn.net/L_smartworld/article/details/107184345
71.简化路径:https://blog.csdn.net/L_smartworld/article/details/107206778
73.矩阵置零:https://blog.csdn.net/L_smartworld/article/details/107210300
75.颜色分类:https://blog.csdn.net/L_smartworld/article/details/107231613
80.删除排序数组中的重复项 II:https://blog.csdn.net/L_smartworld/article/details/107287101
81.搜索旋转排序数组 II:https://blog.csdn.net/L_smartworld/article/details/107287289
89.格雷编码:https://blog.csdn.net/L_smartworld/article/details/107320073
118.杨辉三角:https://blog.csdn.net/L_smartworld/article/details/107492747
119.杨辉三角II:https://blog.csdn.net/L_smartworld/article/details/107492881
130.被围绕的区域:https://blog.csdn.net/L_smartworld/article/details/107700781
134.加油站:https://blog.csdn.net/L_smartworld/article/details/107750523
136.只出现一次的数字:https://blog.csdn.net/L_smartworld/article/details/107752021
137.只出现一次的数字II:https://blog.csdn.net/L_smartworld/article/details/107752116

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值