Home > Net >  Big help!!!!!!
Big help!!!!!!

Time:09-21

How to use the while statement to evaluate a appear most frequently in the array number, such as more than the number of occurrences, the parallel output,

CodePudding user response:

With bubble sort method should be able to solve, just use a while loop instead of a for loop,

CodePudding user response:

First to sort an array, then can keep index array, see an index and on whether a value equal to the number equal to the most times

CodePudding user response:

Or you can iterate through group, every time a number of create a key/value pair, record Numbers and quantity
  •  Tags:  
  • C#
  • Related