How to search numbers for a given set of repetitive numbers in random order that occurs for the first time only. Say for rand() % 5 +1 which repeats n times till it finds all the numbers which occurs at the first time and the number of iteration it took to get all the numbers?
Aucun commentaire:
Enregistrer un commentaire