RAINBOWA - Editorial

Please either format your code or link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

Edit:

Managed to decipher it - consider the testcase:

1 
13
1 2 3 4 5 7 6 7 5 4 3 2 1

Edit:

Also, you’re not printing a new line if the answer is yes.

2 Likes