I have a situation in which I have a list of 150 players(Names, id(uuid),team names etc.).
- The user can make a team of 10 players and he can create as many teams as possible.
- I need to make sure that the user does not try to save the same team twice i.e. same set of players in different order.
I want to achieve it in the most efficient way possible. I was thinking about a hashing function that could solve my problem. I haven't figured it out yet but I just wanted to know what do you guys think? I have to implement this in nodejs if it helps anyway.