HF RL Explorer

Task: Demonstrate Tail Recursion Behavior in Rust

Task: Demonstrate Tail Recursion Behavior in Rust: a task in Terminal-Lego-15k (Harbor dataset). Investigate and demonstrate whether Rust guarantees tail call optimization (TCO) for recursive functions. Create a Rust program that proves whether or not the Rust compiler applies tail recursion…

The task

Investigate and demonstrate whether Rust guarantees tail call optimization (TCO) for recursive functions. Create a Rust program that proves whether or not the Rust compiler applies tail recursion optimization, and implement a safe alternative that handles deep recursion without stack overflow.

Part of PrimeIntellect/Terminal-Lego-15k.