Link Details

Link 62972 thumbnail
User 270157 avatar

By lkesteloot
via lkesteloot.blogspot.com
Published: Jan 25 2008 / 06:19

The common way to reverse a linked list (in an interview question) is difficult to get right. Changing the way you look at the problem can lead to a trivial and obviously correct solution.
  • 11
  • 0
  • 1789
  • 728

Comments

Add your comment
User 236137 avatar

dzonelurker replied ago:

0 votes Vote down Vote up Reply

Wow, classic plain C programming. The solution would be better if he used functions for 'Remove element from old list' and 'Insert element in new list'.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)



Voters Against This Link (0)