전체 글

성장일기
알고리즘/자료구조

[LeetCode] 155. Min Stack - Java

Min Stack - LeetCode Can you solve this real interview question? Min Stack - Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: * MinStack() initializes the stack object. * void push(int val) pushes t leetcode.com 문제 더보기 Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Im..

알고리즘/자료구조

[LeetCode] 21. Merge Two Sorted Lists - Java

Merge Two Sorted Lists - LeetCode Can you solve this real interview question? Merge Two Sorted Lists - You are given the heads of two sorted linked lists list1 and list2. Merge the two lists into one sorted list. The list should be made by splicing together the nodes of the first two lists leetcode.com 문제 더보기 You are given the heads of two sorted linked lists list1 and list2. Merge the two lists..

알고리즘/자료구조

[LeetCode] 2. Add Two Numbers - Java

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 문제 더보기 You are given two non-empty linked lists representing two non-negative integers. The digits are..

알고리즘/자료구조

[LeetCode] 141. Linked List Cycle - Java

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 문제 더보기 Given head, the head of a linked list, determine if the linked list has a cycle in it. There..

알고리즘/자료구조

[LeetCode] 3. Longest Substring Without Repeating Characters - Java

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 문제더보기Given a string s, find the length of the longest substring without r..

jny0
J N Y 0