[LeetCode] 143. Reorder List - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/reorder-list/ Reorder List - LeetCode Reorder List - You are given the head of a singly linked-list. The list can be represented as: L0 → L1 → … → Ln - 1 → Ln Reorder the list to be on the following form: L0 → Ln → L1 → Ln - 1 → L2 → Ln - 2 → … You may not modify the va leetcode.com 문제 You are given the head of a singly linked-list. The list can be represented as: L..
[LeetCode] 19. Remove Nth Node From End of List - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/ Remove Nth Node From End of List - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given the head of a linked list, remove the nth node from the end of the list and return its head. Example 1: Input: hea..
[LeetCode] 21. Merge Two Sorted Lists - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/merge-two-sorted-lists/description/ Merge Two Sorted Lists - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list. The list should be made by spl..
[LeetCode] 141. Linked List Cycle - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/linked-list-cycle/description/ Linked List Cycle - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 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 ..
[LeetCode] 206. Reverse Linked List - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/reverse-linked-list/description/ Reverse Linked List - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3,4,5] Output: [5,4,3,2,1] E..
HYOJUN
'Linked List' 태그의 글 목록