Angad Sandhu
Search
Browse

143_Reorder_List

Source name
143_Reorder_List.py
# File: Leetcode/Solutions/143_Reorder_List.py

"""
Problem Number: 143
Problem Name: Reorder List
Difficulty: Medium
Tags: Linked List, Two Pointers, Stack, Recursion, Neetcode 150
Company (Frequency): Amazon, Apple, Facebook, Google, Microsoft
Leetcode Link: https://leetcode.com/problems/reorder-list/description/

DESCRIPTION

You are given the head of a singly linked list. The list can be described as:

$L_0 → L_1 → … → L_{n-1} → L_n$

Reorder the list to be on the following form:

$L_0 → L_n → L_1 → L_{n-1} → L_2 → L_{n-2} → …$

You do not need to return anything; modify the list in-place instead.
"""

Browse the library