3 ms·
See, the trick is that while you don't approve, some others do.
by mfukar 16y ago
See, the trick is that while you don't approve, some others do.
- Dylan16807 16y agoThey would? I don't follow. A random number generator only gives you one number at a time. The problem is still 'print X sequence without loops'. No answer has been given here, so there's no meaningful approval to be had. It's not that using a random number generator is a cheat, it's that it is a (pointless?) lateral move rather than a solution.
- chc 16y agoYou print the first 1000 terms. No loop was mentioned. That's the cheat. You don't approve. Others might.
- Dylan16807 16y agoHow do you print multiple terms out of a random number generator without a loop? That's my point. You haven't solved anything, cheat or not.
- mfukar 16y agoRecursion, compile-time code generation, templates, dispatching. Pick whatever you like most.