leetcode双人赛-LeetCode:力扣解决方案

时间:2024-07-19 22:37:00
【文件属性】:

文件名称:leetcode双人赛-LeetCode:力扣解决方案

文件大小:69KB

文件格式:ZIP

更新时间:2024-07-19 22:37:00

系统开源

leetcode双人赛力码 # 标题 困难 标签 笔记 1 二和 简单的 哈希表 在搜索时构建哈希表 2 两个数字相加 中等的 链表,数学 保存一个虚拟头用于输出 3 无重复字符的最长子串 中等的 哈希表,两个指针,字符串 更新右指针遍历时的最大长度,移动左指针以确保不重复 4 两个有序数组的中位数 难的 二分查找 在每个数组中找到左半部分的最大数字和右半部分的最小数字,然后使用公式中值 = 0.5 * (max(L1, L2) + min(R1, R2)) 7 反转整数 简单的 数学 测试溢出 8 字符串到整数 (atoi) 简单的 字符串,数学 删除前导空格,测试溢出 15 3总和 中等的 两个指针 先排序,转化为二和问题,然后从两边逼近 16 3和最近 中等的 两个指针 计算绝对值 18 4总和 中等的 两个指针 4Sum -> 3Sum -> 2Sum 28 实现 strStr() 简单的 KMP 算法,字符串 遍历所有可能的起点,看看haystack中的以下字符是否与needle相匹配 30 连接所有单词的子串 难的 哈希表,字符串 以目标构建一个哈希表,在搜索时更新另一个


【文件预览】:
LeetCode-master
----cpp()
--------445_Add_Two_Numbers_II.cpp(3KB)
--------004_Median_of_Two_Sorted_Arrays.cpp(6KB)
--------138_Copy_List_with_Random_Pointer.cpp(5KB)
--------141_Linked_List_Cycle.cpp(1KB)
--------065_Valid_Number.cpp(5KB)
--------092_Reverse_Linked_List_II.cpp(2KB)
--------009_Palindrome_Number.cpp(1KB)
--------155_Min_Stack.cpp(2KB)
--------237_Delete_Node_in_a_Linked_List.cpp(1KB)
--------206_Reverse_Linked_List.cpp(2KB)
--------025_Reverse_Nodes_in_k-Group.cpp(3KB)
--------043_Multiply_Strings.cpp(2KB)
--------007_Reverse_Integer.cpp(1KB)
--------066_Plus_One.cpp(1KB)
--------076_Minimum_Window_Substring.cpp(2KB)
--------454_4Sum_II.cpp(2KB)
--------143_Reorder_List.cpp(2KB)
--------028_Implement_strStr().cpp(3KB)
--------003_Longest_Substring_Without_Repeating_Characters.cpp(2KB)
--------021_Merge_Two_Sorted_Lists.cpp(3KB)
--------067_Add_Binary.cpp(1KB)
--------008_String_to_Integer_(atoi).cpp(3KB)
--------203_Remove_Linked_List_Elements.cpp(2KB)
--------019_Remove_Nth_Node_From_End_of_List.cpp(2KB)
--------459_Repeated_Substring_Pattern.cpp(2KB)
--------371_Sum_of_Two_Integers.cpp(554B)
--------016_3Sum_Closest.cpp(2KB)
--------234_Palindrome_Linked_List.cpp(2KB)
--------239_Sliding_Window_Maximum.cpp(2KB)
--------015_3Sum.cpp(3KB)
--------306_Additive_Number.cpp(3KB)
--------001_Two_Sum.cpp(2KB)
--------018_4Sum.cpp(4KB)
--------006_ZigZag_Conversion.cpp(2KB)
--------415_Add_Strings.cpp(1KB)
--------005_Longest_Palindromic_Substring.cpp(2KB)
--------167_Two_Sum_II_Input_array_is_sorted.cpp(2KB)
--------083_Remove_Duplicates_from_Sorted_List.cpp(2KB)
--------002_Add_Two_Numbers.cpp(2KB)
--------030_Substring_with_Concatenation_of_All_Words.cpp(5KB)
----LICENSE(1KB)
----c()
--------155_Min_Stack.c(2KB)
----java()
--------016_3Sum_Closest.java(2KB)
--------004_Median_of_Two_Sorted_Arrays.java(5KB)
--------018_4Sum.java(3KB)
--------445_Add_Two_Numbers_II.java(2KB)
--------076_Minimum_Window_Substring.java(2KB)
--------6_ZigZag_Conversion.java(2KB)
--------043_Multiply_Strings.java(2KB)
--------371_Sum_of_Two_Integers.java(798B)
--------067_Add_Binary.java(949B)
--------454_4Sum_II.java(2KB)
--------239_Sliding_Window_Maximum.java(2KB)
--------002_Add_Two_Numbers.java(2KB)
--------415_Add_Strings.java(1KB)
--------065_Valid_Number.java(2KB)
--------001_Two_Sum.java(2KB)
--------066_Plus_One.java(1KB)
--------007_Reverse_Integer.java(1KB)
--------167_Two_Sum_II.java(1KB)
--------003_Longest_Substring_Without_Repeating_Characters.java(1KB)
--------306_Additive_Number.java(3KB)
--------155_Min_Stack.java(1KB)
--------015_3Sum.java(2KB)
--------030_Substring_with_Concatenation_of_All_Words.java(4KB)
--------008_String_to_Integer_(atoi).java(3KB)
--------005_Longest_Palindromic_Substring.java(2KB)
----README.md(3KB)

网友评论