LeetCode (3) 썸네일형 리스트형 3. Longest Substring Without Repeating Characters 문제 더보기 Medium Description Given a string s, find the length of the longest substring without repeating characters. Examples Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Input: s = "pwwkew" Output: 3 Explanation: The answer is "wke", with the length of 3. Notice that the a.. 2. Add Two Numbers 문제 더보기 Medium Description 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. You may assume the two numbers do not contain any leading zero, except the number 0 itself. Examples Input: l1 = [2,4,3], l2 = [5,6,4] Output: [7.. 1. Two Sum 문제 더보기 Easy Description 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. You can return the answer in any order. Examples Input: nums = [2,7,11,15], target = 9 Output: [0,1] Explanation: Because nums[0] + nums[1] == 9.. 이전 1 다음