Program to segregate 0's and 1's using LinkedList. Example: i/p: {1,1,0,0,1,0,1,0} o/p: {0,0,0,0,1,1,1,1} #Java #LinkedList
Пікірлер: 1
@krishnaG-un3tf6 күн бұрын
LinkedList declaration is incorrect...in ur program output it is displaying the size of the array decreased by 1, because u declared the LinkedList in improper way.....this is the correct way LinkedList ll = new LinkedList();..this displays the correct output