自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 227

原创 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 4194 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 280

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除