โ† Oracle questions
CodingReported in a candidate post, May 2024

Recursive function printing 1..5 and then back down

Filed under Oracle

Write a recursive function that prints the numbers 1 to 5 in increasing order and then back down to 1, for example 1 2 3 4 5 4 3 2 1. Any recursive structure is acceptable.

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.