Incorrect no answer 54 removegrayson 3 4 2 pts

This preview shows page 2 - 10 out of 10 pages.

Incorrect / No Answer 5.4 Remove("Grayson") 3 / 4 + 2 pts Grayson removed from the tree + 1 pts Ashley is the new root + 1 pts Rest of tree correct + 0 pts Incorrect / No Answer - 0.5 pts Transpose Error QUESTION 6 6 LinkedList - removeFirstOccurrence 14 / 25 + 3 pts Checks head's data + 1 pts Moves head pointer if removing head + 1 pts Correctly removes head (reset's the last element's next pointer to head's next) (includes correctly dealing with a list of size 1) + 3 pts Iterates through the list (curr = curr.next) + 3 pts Iteration has correct bounds (does not check if curr.next == null, checks if curr.next == head or uses size) + 3 pts Finds the first occurrence correctly + 3 pts Removes correctly in the general case + 4 pts Decrements size if and only if something is removed + 3 pts Throws exception if not found + 1 pts Has exception message + 0 pts Incorrect / No Answer - 1 pts Syntax Error - 1 pts NullPointerException (not covered by something above) - 3 pts Inefficient (goes to find the data, then goes again to remove it) - 2 pts Does not stop traversing when finding first occurrence - 2 pts Modified method header - 5 pts Destroys LinkedList Page 2
Image of page 2

Subscribe to view the full document.

Image of page 3
Image of page 4

Subscribe to view the full document.

Image of page 5
Image of page 6

Subscribe to view the full document.

Image of page 7
Image of page 8

Subscribe to view the full document.

Image of page 9
Image of page 10
You've reached the end of this preview.
  • Spring '08
  • LEBANON
  • Articles with example pseudocode, Tree traversal, Nested set model, pts Throws exception, pts ADTs, pts stacks

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern