Open utterances-bot opened 2 years ago
Instead of appending a single element to the tuple on each recursive call, we can append more on each recursive call, which results in fewer recursive calls and passes the test. Check my solution for details: https://github.com/type-challenges/type-challenges/issues/10727
I wrote a short and long versions of solutions for this challenge with more explanation: https://github.com/type-challenges/type-challenges/issues/19437
Came up with two solutions. One works up to 9999
, the other works up to 9_007_199_254_740_992
.
https://github.com/type-challenges/type-challenges/issues/21030#issue-1509235310
MinusOne
This project is aimed at helping you better understand how the type system works, writing your own utilities, or just having fun with the challenges.
https://ghaiklor.github.io/type-challenges-solutions/en/medium-minusone.html