lp01 : Leetcode practice with linked lists
| num | ready? | description | assigned | due |
|---|---|---|---|---|
| lp01 | true | Leetcode practice with linked lists | Mon 01/05 09:00AM | Fri 01/16 11:59PM |
Additional Practice with linked lists
Topics covered: Weeks 1-2 (Linked lists, pointers, memory management)
Complete at least 2 problems from this set and submit via Gradescope by the due date.
- Reverse a singly linked list (easy): https://leetcode.com/problems/reverse-linked-list/. Note that in lecture 1 we coded an iterative implementation for problem #1. Try solving the same problem recursively.
- Merge two sorted lists(easy): https://leetcode.com/problems/merge-two-sorted-lists/
- Remove duplicates from sorted lists (easy): https://leetcode.com/problems/remove-duplicates-from-sorted-list/
- Middle of the Linked List (easy): https://leetcode.com/problems/middle-of-the-linked-list/
- Delete Node in a Linked List (medium): https://leetcode.com/problems/delete-node-in-a-linked-list/description/
- Insert Greatest Common Divisor in a Linked List (medium): https://leetcode.com/problems/insert-greatest-common-divisors-in-linked-list/description/
- Partition a linked list (medium): https://leetcode.com/problems/partition-list/description/?envType=problem-list-v2&envId=linked-list
- Rotate list (medium): https://leetcode.com/problems/rotate-list/description/
- LinkedList Cycle II (medium): https://leetcode.com/problems/linked-list-cycle-ii/description/
- Delete the middle node of a linked list (medium): https://leetcode.com/problems/delete-the-middle-node-of-a-linked-list/description/?envType=problem-list-v2&envId=linked-list