← Oracle questions

Recursive function to print numbers 1 to n and n to 1

Filed under Oracle

Write a recursive function that prints numbers from 1 to n and then from n to 1, with the restriction that printing from n to 1 must not happen during the return phase of the recursion.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.