X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpalllist.c;h=e9367545b9d1bd3caf60a84a87babb92444a093a;hb=f888d29c0ceaa48568b15f3269df70e6498c9dbc;hp=023593b0e2d1e54fcfb1908c4913919a83bf93cf;hpb=d48cfaf24d7fe48da7b3bd5a7bb89f859e83c280;p=16.git diff --git a/src/palllist.c b/src/palllist.c index 023593b0..e9367545 100755 --- a/src/palllist.c +++ b/src/palllist.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -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