Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 3.9 KB

linked-list-pointer.md

File metadata and controls

25 lines (22 loc) · 3.9 KB

Linked List / Pointer Data Structure Problems

LeetCode problems solved using Linked List / Pointer data structures.

Problems

# Problem Difficulty Algorithm Time Space Explanation
19 Remove Nth Node From End of List Medium Floyd Cycle Detection O(n) O(1) Explanation
141 Linked List Cycle Easy Floyd Cycle Detection O(n) O(1) Explanation
142 Linked List Cycle II Medium Floyd Cycle Detection O(n) O(1) Explanation
143 Reorder List Medium Floyd Cycle Detection O(n) O(1) Explanation
148 Sort List Medium Floyd Cycle Detection O(n) O(1) Explanation
202 Happy Number Easy Floyd Cycle Detection O(n) O(1) Explanation
234 Palindrome Linked List Easy Floyd Cycle Detection O(n) O(1) Explanation
287 Find the Duplicate Number Medium Floyd Cycle Detection O(n) O(1) Explanation
457 Circular Array Loop Medium Floyd Cycle Detection O(n) O(1) Explanation
876 Middle of the Linked List Easy Floyd Cycle Detection O(n) O(1) Explanation
1559 Detect Cycles in 2D Grid Medium Floyd Cycle Detection O(n) O(1) Explanation
2095 Delete the Middle Node of a Linked List Medium Floyd Cycle Detection O(n) O(1) Explanation
2130 Maximum Twin Sum of a Linked List Medium Floyd Cycle Detection O(n) O(1) Explanation
2360 Longest Cycle in a Graph Hard Floyd Cycle Detection O(n) O(1) Explanation
2509 Cycle Length Queries in a Tree Hard Floyd Cycle Detection O(n) O(1) Explanation
2608 Shortest Cycle in a Graph Hard Floyd Cycle Detection O(n) O(1) Explanation
3887 Incremental Even-Weighted Cycle Queries Hard Floyd Cycle Detection O(n) O(1) Explanation