CodePudding user response:
Saved to first define an array, the input array in the array, and then input to query number, array, define a symbol such as a flag. The query to a flag++, the final output value of the flagCodePudding user response:
Rank orderThe same number are next to each other, then nothing to say in the
Vector
Sort have ready-made methods can be invoked