Also reported as Toy Language Compiler/Interpreter · Type Check · Infer Function Return Type
OpenAI coding question, reconstructed from 34 candidate reports (February 2025 to July 2026). Tests: expression evaluation and interpreters; tree recursion and traversal. Candidates reported 3 follow-ups. The write-up includes a Python solution that passes 6 test cases.