Design and implementation of interesting data structures and algorithms. You may find it useful either in your computer science course curriculum or in technical interviews of companies like Microsoft, Amazon, Google, Yahoo, Sun, Oracle etc
Thursday, April 14, 2011
To find nth element from the end in a linked list
Use two pointers.
Start the second pointer when the first pointer reaches nth element.
No comments:
Post a Comment