Day 20 of July LeetCode Challenge

Aanchal Patial
1 min readJul 20, 2020

Remove all elements from a linked list of integers that have value val.

Example:

Input:  1->2->6->3->4->5->6, val = 6
Output: 1->2->3->4->5

--

--

Aanchal Patial

We never really grow up, we only learn how to act in public