- 博客(3)
- 收藏
- 关注
原创 LeetCode HOT100题解记录-中等
题目目录二、中等No.1(#2)Add Two NumbersNo.2(#3)Longest Substring Without Repeating CharactersDP No.3(#5) Longest Palindromic SubstringNo.4(#11)Container With Most WaterNo.5(#15)3SumNo.6(#17)Letter Combinations of a Phone NumberNo.7(#19)Remove Nth Node From End of
2021-10-16 15:12:53
765
原创 LeetCode报错:Line 1034:Char9
报错信息:Line 1034: Char 9: runtime error: reference binding to null pointer of type ‘std::vector<int, std::allocator>’ (stl_vector.h) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/bit
2021-04-20 10:23:24
4427
1
原创 LeetCode HOT100题解记录-简单
题目目录 No.1(#1) Two Sum No.2(#20)Valid Parentheses No.3(#21)Merge Two Sorted Lists No.4(#53)Maximum Subarray No.5(#70)Climbing Stairs No.6(#101)Symmetric Tree No.1(#1) Two Sum 思路:先将数组排序至递增,利用类似快排的双指针思想:和大于target就左移right指针一位,和小于target就右移左指针一位,最终找到和等于target的值,
2021-04-14 19:25:10
863
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅