For this, the method used is to iterate though the array with a for loop and collect the max and min.
XXX the XXXXXXXX XXXX XXX an example.
X. The number of XXX XXX even XXXXXX
While XXXXXXXXX XXXXXXX the XXXXX you XXX also collect these XXXXXX XX have two XXXXXXXX XXXXXX 'XXX' and 'even'. XXXX you XXX a XXXXXX XXXX XX odd, you add one to the XXX 'odd' XXXXXXXX. XX XXX if a value XX XXX or XXXX, you get the remainder of XXX value XXXX XXXXXXX XX two. XXX XXXXXXX, XX % 2 == X XXXXXXX that it is XXXX. XXXX, 3 % 2 == X which means that is XX XXX.
X. Cumulative XXXXXX. XX XXX XXXXX is X X X X, XXX program XXXXXX X 8 XX XX.
To print the XXX XX the XXXXXXXX, you can iterate XXXXXXX XXX arrayand XXXXX XXX value XX the XXX of each iteration.
X. All adjacent XXXXXXXXXX. If XXX input is X X 3 4 X 5 X 6 X 2, the XXXXXX is 3 5 X. XXXXX XXX those XXX XXXXXXX for multiple adjacent XXXXXXX XXXX X X 6.
For this, you XXXX XX XXX current number XXX XXX XXXXXX XXXXX it XXXXX the same. If they do, XXXX add them XX an array.
XXXXX, XXX the attachment for a better XXX more XXXXXX XXXXXXXXXXX.