Is there any way to store the location of an array element and that array element were the array elements can be repeated

Revision en1, by kabirdutt0907, 2021-06-12 07:55:31

Yesterday I came across a question whereby I need to store the location and the respective element at that location and every time I need to access the location to perform the given operation here the array elements can repeat I know for some of you the doubt may be silly But i am kinda weak in data structure So please help..

Tags #data structure, #competitive programming, #vectors, #std::map

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English kabirdutt0907 2021-06-12 07:55:31 454 Initial revision (published)