I have some basic doubts with data structure usage.
Please confirm if my below understanding is correct.?
Link List can be used to frequently need to add and remove elements from the middle of a list, and you will not read it very frequently
Queue will be frequently adding and removing items from front and back of a list
Array will be used when you have a list will never change size and you will swap items within it frequently
HashMap is used when you will be looking for specific unique items frequently
A list is sorted except for one item which is in wrong place.
Bubble sort is used here.