LeetCode

LeetCode

[LeetCode] 2. Add Two Numbers

Add Two Numbers - LeetCode Can you solve this real interview question? Add Two Numbers - 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 leetcode.com 두개의 Linked list가 주어집니다. Linked list는 reverse order인 상태로 주어지고 두개의 Linked list의 합을 구하는 문제입니다. Example 1:..

LeetCode

[LeetCode] 141. Linked List Cycle

Linked List Cycle - LeetCode Can you solve this real interview question? Linked List Cycle - Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in a linked list if there is some node in the list that can be reached again by continuo leetcode.com 단일 링크드 리스트에서 Cycle이 있는지 확인하는 문제입니다. 재귀함수를 통해 링크드 리스트가 반복이 되는지 확인해봤습니다. 실패코드 더보기 static class ListNo..

LeetCode

[LeetCode] 3. Longest Substring Without Repeating Characters

Longest Substring Without Repeating Characters - LeetCodeCan you solve this real interview question? Longest Substring Without Repeating Characters - 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 "leetcode.com int 배열이 주어지면 가장 긴 substring을 찾는 문제입니다.단, substring안에 같은 letter이 들어가면 안됩니다..

LeetCode

[LeetCode] 209. Minimum Size Subarray Sum

Minimum Size Subarray Sum - LeetCode Can you solve this real interview question? Minimum Size Subarray Sum - Given an array of positive integers nums and a positive integer target, return the minimal length of a subarray whose sum is greater than or equal to target. If there is no such subarr leetcode.com 양의 정수 배열이 주어지면 배열의 조합의 합이 target과 같아야 하고 target과 같은 조합중 가장 작은 조합의 길이를 반환하는 문제입니다. Example 1..

Sol b
'LeetCode' 카테고리의 글 목록 (7 Page)