Login
Sign up for FREE
arrow_back
Library
Linked List Worksheet 3
By Mickey Arnold
star
star
star
star
star
star
star
star
star
star
share
Share
Last updated 10 months ago
2 Questions
Add This Formative
1 point
1
Question 1
1.
Part 1 :
Complete method skipEveryOther().
//method skipEveryOther will remove every other node
public void skipEveryOther(ListNode list)
{
//// Code goes here ////
}
1 point
1
Question 2
2.
Part 2 :
Complete method doubleUp().
//method doubleUp will double the size of the list by adding in
//new nodes with the same values as the original list nodes
public void doubleUp(ListNode list)
{
////// Code goes here //////
}