Leetcode每日一题
文章平均质量分 64
Sailing_咸鱼
这个作者很懒,什么都没留下…
展开
-
Leetcode 4. Median of Two Sorted Arrays
本文首发于每日一题:4 - 咸鱼Blog 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 . Example 1 Input: nums1 = [1,3], nums2 = [2] Output: 2.00000 Explanat...原创 2022-03-21 22:18:51 · 144 阅读 · 0 评论 -
Leetcode 3. Longest Substring Without Repeating Characters
本文首发于每日一题:3 - 咸鱼Blog Given a string s, find the length of the longest substring without repeating characters. Example 1 Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2 Input: s = "bbbbb" Output:...原创 2022-03-21 22:15:39 · 207 阅读 · 0 评论 -
Leetcode 2. Add Two Numbers
本文首发于每日一题:2 - 咸鱼Blog 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 and return the sum as a linked list原创 2022-03-21 22:08:08 · 230 阅读 · 0 评论 -
Leetcode 1. Two Sum
本文首发于每日一题:1 - 咸鱼Blog 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 you may not use the same element twice. ...原创 2022-03-21 22:00:23 · 280 阅读 · 0 评论