Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu... Read More
posted @ 2014-10-24 15:52 chengcy Views(88) Comments(0) Diggs(0)
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No... Read More
posted @ 2014-10-24 13:04 chengcy Views(138) Comments(0) Diggs(0)