- 博客(4)
- 收藏
- 关注
原创 [LeetCode] 4. Median of Two Sorted Arrays(Python)
[LeetCode] 4. Median of Two Sorted Arrays(Python)1. 题目2. 题目理解3. 代码实现1. 题目Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.The overall run time complexity should be O(log (m+n)).Example 1:
2021-12-06 22:00:14
831
原创 [LeetCode] 3. Longest Substring Without Repeating Characters(Python)
[LeetCode] 3. Longest Substring Without Repeating Characters(Python)1. 题目2. 题目理解3. 代码实现1. 题目Given a string s, find the length of the longest substring without repeating characters.Example 1:Input: s = “abcabcbb”Output: 3Explanation: The answer is “a
2021-12-03 15:58:56
625
原创 [LeetCode] 2. Add Two Numbers(Python)
[LeetCode] 2. Add Two Numbers(Python)1. 题目2. 题目理解3. 代码实现1. 题目You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers a
2021-12-02 14:05:46
347
原创 [LeetCode] 1. Two Sum(Python)
[LeetCode] 1. Two Sum(Python)1. 题目2. 题目理解3. 代码实现4. 分析附录:1. 题目Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.You may assume that each input would have exactly one solution, and y
2021-12-01 20:59:16
1169
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人