You are on page 1of 14

Linked-List Homework

Problem 1 : 876. Middle of the Linked List


● Link :https://leetcode.com/problems/middle-of-the-linked-list/

Implement Function that return the middle node of the linked list.

If there are two middle nodes, return the second


middle node.
Problem 2 : 206. Reverse Linked List
● https://leetcode.com/problems/reverse-linked-list/

Implement Function that reversed list.


Problem 3 : 234. Palindrome Linked List
● https://leetcode.com/problems/palindrome-linked-list/

Implement Function that return true if list is palindrome otherwise return false.

true
Problem 4 : 203. Remove Linked List Elements
● https://leetcode.com/problems/remove-linked-list-elements/

Given the head of a linked list and an integer val,


remove all the nodes of the linked list that has Node.val == val, and return the new head.
Problem 5 : 19. Remove Nth Node From End of List
● https://leetcode.com/problems/remove-nth-node-from-end-of-list/

n=2
Problem 6 : 2. Add Two Numbers
● https://leetcode.com/problems/add-two-numbers/
Hints
Problem 1

HINT : https://www.youtube.com/watch?v=mrTXb5sFLcM&ab_channel=Log2Base2
Problem 2

HINT : https://www.youtube.com/watch?v=G0_I-ZF0S38&ab_channel=NeetCode
Problem 3

HINT : https://www.youtube.com/watch?v=yOzXms1J6Nk&ab_channel=NeetCode
Problem 4

HINT : https://www.youtube.com/watch?v=JI71sxtHTng&ab_channel=NeetCode
Problem 5

HINT : https://www.youtube.com/watch?v=XVuQxVej6y8&t=266s&ab_channel=NeetCode
Problem 6

HINT : https://www.youtube.com/watch?v=wgFPrzTjm7s&feature=emb_title&ab_channel=NeetCode

You might also like