Home > Back-end >  High or low to print
High or low to print

Time:12-18

An array of no renewal, I how to high and low level or low high print?
4337 & gt; 4373
1243 & gt; 2143
5678 & gt; 5768
How should I do this?

CodePudding user response:

Didn't understand your question
For example, how a disorderly array, such as a=[4337, 4373, 1243, 2143, 5678, 5768]
And then what? Want to print out the effect of
4337 & gt; 4373
1243 & gt; 2143
5678 & gt; 5768

The rules? The so-called high and low? 4337 is not higher than 2143? Why not print 2143 & gt; 4337

CodePudding user response:

A disorderly array of print cycle is size or small size large array size,
Input 4 3 3 7 output, 3, 4, 3, 7 small size
Input output 1243 2 1 3 4 size size

CodePudding user response:

Input output 1243 2 1 3 4 size size
4 1 or 2, 3, 4 3 2 1 or 3 2 1 or 4 1 2 3 4 don't meet? Why only 2 3 4 1 in accordance with, and what conditions?

CodePudding user response:

If the size is size or small size big sort the output of 0
  • Related