3 ms·
Ppffftt, I wrote a recursive algorithm that calculates 2^n in O(2^n) time for an exam question. That's what I call a bad algorithm!
by TheBoff 15y ago
Ppffftt, I wrote a recursive algorithm that calculates 2^n in O(2^n) time for an exam question.
That's what I call a bad algorithm!