Section5Key - CSE143 Section #5 Probfems Sampl.e s olutioaa...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSE143 Section #5 Probfems Sampl.e s olutioaa f or D roblens 1 -10 1 . li-st. next. next = new ListNode (3, null) 2. list = new ListNode(3, list); list.next); ; Solutions 11. f or p roble-c 1 1-17 1istffi 1-2. lisr 13. 1i s t L4. 3. list.next = new ListNode(3, 4. temp"next = list.next; = temp; list.next 5. temp.next.next = list.next; = temp; list.next = temp.next; 6. list.next.next = list.next; temp.next = temp; list.next 7. ListNode 1ist2 = llst; = 1ist. next,. list = list2.next.nexE list2.next = nu11; list.next 8. list.next.next.next = list.next; list list.next.next.next = list; = nu11; ffi ristffi 15. ; list L6. tt*tffi ,r"trffi 1,7. list 9. ListNode Lemp = list; = list. next,. list temp. nexE = l-ist.. next; = temp; li-st.next l-0. ListNode Lemp = list. next. ndxt; temp.next = list.next; = list; list.next.next = null; list.next.next.next lislt = temp; ...
View Full Document

This note was uploaded on 11/03/2009 for the course CSE 143 taught by Professor Sr during the Spring '08 term at University of Washington.

Ask a homework question - tutors are online