225_06_split_list -...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
1 I don’t have office hours on Mondays- students should all be  registered in a lab section on Mondays and you can ask any  questions you have there. Don’t forget to assign the attendance sheet every class. Assignment 1 Part A is due at the beginning of class on  Wednesday. Hand it in on paper.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 To check your answer for question 4: Add to top of readRear: int count=0; Inside the loop:      current= start;      while (current.next != null)      {             current= current.next; // Statement to count.              count++;             // Checkpoint 2.       } At the end:   System.out.println(“Executed “ + count + “ times on list of size “ + n);
Background image of page 2
3 Review of linked lists
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 How can we split a list into two lists for our Mergesort? One solution: evenOddSplit() Side note: this is not the right way to do it on the assignment. Learning objectives: Understanding of how to program linked lists 
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 24

225_06_split_list -...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online