← Oracle questions

Determine profession of a child at a given generation and index

Filed under Oracle

An Engineer's children are (Engineer, Doctor). A Doctor's children are (Doctor, Engineer). Starting with an Engineer at generation 1, find the profession of the child at generation 'gen' and index…

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.