mercredi 4 juillet 2018

Printing the count of list continuous distinct element in an one dimensional array

Ex- If A[100] is an array and has elements {1,2,2,3,2,1} and if I loop through it then distinct element in this case will be 3,2,1.

condition-Continuous distinct numbers of element should not be less than 3.

Aucun commentaire:

Enregistrer un commentaire