TweakCode
Search lessons
Loading editor…
Test casesRun to compare output
Input
head = [1,2,6,3,4,5,6], val = 6
Output
—
Expected
[1,2,3,4,5]

More practice

Same technique, different problems. Try them without the walkthrough.