Array-promo

Question

Take an element from the user and delete all the duplicates of the given element from the (array for java/list for Python) if found.  

				
					Enter the size of List:10
Enter Elements in list:
1
2
1
1
3
4
1
5
6
1
Elements in given List:
1 2 1 1 3 4 1 5 6 1 
Enter the Element to be Deleted:1
List after deleting element:
2 3 4 5 6 
				
			

Share code with your friends

Share on whatsapp
Share on facebook
Share on twitter
Share on telegram

Code

Coding Store

10-minute Stress-Buster Games

Leave a Reply

Your email address will not be published. Required fields are marked *