3 ms·
To say in simpler words, regarding implementation - the main trick is to "store" the flag in the argument itself. It is a quite common trick, I'd say.
by zura 13y ago
To say in simpler words, regarding implementation - the main trick is to "store" the flag in the argument itself. It is a quite common trick, I'd say.
- ape4 13y agoOr doing something outside the box. Some people used static variables. How about looking at the call stack. If f() is invoked by f() do one thing, if you aren't do something else.