Click here to Skip to main content
16,010,427 members

Comments by amvest (Top 3 by date)

amvest 29-Jun-12 14:57pm View    
Thanks
amvest 29-Jun-12 5:47am View    
i wrote;

ListNode temp = list.next.next;
temp.next = list;
list = list.next;

t prints
Collapse | Copy Code

[4] -> [3] -> [5]

but adds [4] at the end and an error message "cycle". I assume it means infinite loop? any help appreciated.
amvest 6-May-12 4:15am View    
Thanks much!