I'm confused about which data structure is the best to use my program will read a text then save all the words without duplicates in a DS and in the end, it should print them sorted lexicographically
I thought about using a map with the string in both key and value, and sort the map after that but idk how to sort it that way, and maybe there is a better way for doing that
help please
thanks
Aucun commentaire:
Enregistrer un commentaire