Question
Given input n, print {n, n-1.....1} eg. n = 5, output = {5, 4, 3, 2, 1}
A
Anonymous
December 17, 2025
54
Answer
First enumeration numbers and reversing it
Code
reverse(enumerate(ri!n) + 1)
Output
JuniorExpressions#coding
Loading comments...
First enumeration numbers and reversing it
Code
Output