- 博客(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 251
原创 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 4239 1
原创 LeetCode HOT100题解记录-简单
题目目录No.1(#1) Two SumNo.2(#20)Valid ParenthesesNo.3(#21)Merge Two Sorted ListsNo.4(#53)Maximum SubarrayNo.5(#70)Climbing StairsNo.6(#101)Symmetric TreeNo.1(#1) Two Sum思路:先将数组排序至递增,利用类似快排的双指针思想:和大于target就左移right指针一位,和小于target就右移左指针一位,最终找到和等于target的值,
2021-04-14 19:25:10 296
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人