Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.61 KB

fast-slow-pointers.md

File metadata and controls

30 lines (18 loc) · 1.61 KB

Fast & Slow Pointers LeetCode Problems

A collection of LeetCode problems solved using Fast & Slow Pointers pattern techniques, explanations, and complexity analysis.

Problems

Easy

# Problem Language Time Space Explanation
141 Linked List Cycle PHP O(n) O(1) Explanation

Medium

# Problem Language Time Space Explanation
19 Remove Nth Node From End of List JavaScript O(n) O(1) Explanation

| 142 | Linked List Cycle II | Python | O(n) | O(1) | Explanation |

| 2095 | Delete the Middle Node of a Linked List | Java, JavaScript | O(n) | O(1) | Explanation |

| 2130 | Maximum Twin Sum of a Linked List | Java, JavaScript | O(n) | O(1) | Explanation |

Hard

# Problem Language Time Space Explanation
2509 Cycle Length Queries in a Tree JavaScript O(n) O(1) Explanation