LeetCode 707: Design Linked List
Problem Restatement We need to design a linked list from scratch. The implementation may use either a singly linked list or a doubly linked list. This guide uses a singly linked list. A singly linked list node stores two things: Field Meaning val The value stored in the node next A reference to the next node The linked list is 0-indexed. We need to implement the MyLinkedList class with these...