Moxie Software Interview Question: Reverse a linked list?... | Glassdoor

Interview Question

Software Development Engineer In Test Interview Bellevue, WA

Reverse a linked list?

Answer

Interview Answer

1 Answer

0

j=len-1;
for(int i=0;i<len/2;i++,j--)
   swap(A[i],A[j])

Interview Candidate on Mar 28, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.