X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=blobdiff_plain;f=src%2Fpalllist.c;h=77f0abdc02ac4674a8ec649417863ac2bacd7509;hp=023593b0e2d1e54fcfb1908c4913919a83bf93cf;hb=b8c9d5fcb2b66420bc673f54b14cc5d0ea5283ed;hpb=d48cfaf24d7fe48da7b3bd5a7bb89f859e83c280 diff --git a/src/palllist.c b/src/palllist.c index 023593b0..77f0abdc 100755 --- a/src/palllist.c +++ b/src/palllist.c @@ -165,19 +165,18 @@ void main() Created linked list will be 11->11->11->13->13->20 */ pushll(&head, 20); pushll(&head, 13); - pushll(&head, 13); + pushll(&head, 13); + pushll(&head, 11); pushll(&head, 11); pushll(&head, 11); - pushll(&head, 11); - + printf("\n Linked list before duplicate removal "); - printList(head); - + printList(head); + /* Remove duplicates from linked list */ - removeDuplicates(head); - - printf("\n Linked list after duplicate removal "); - printList(head); - + removeDuplicates(head); + + printf("\n Linked list after duplicate removal "); + printList(head); } #endif