Factorial example in Rust
Whilst it’s not the best use of recursion it’s a common tutorial and interview example. As Al Sweigart says “The Recursive Factorial Algorithm Is Terrible” ~ https://inventwithpython.com/recursion/chapter2.html# Nevertheless, as a learning exercise, it’s a good way to get your feet wet. One of they key concepts to understand is “stack unwinding” – which you can […]