3 ms·
Here N should be interpreted as the number itself, not the number of digits (in any base). So the actual complexity is exponential in terms of the number of dig
by lifthrasiir 2y ago
Here N should be interpreted as the number itself, not the number of digits (in any base). So the actual complexity is exponential in terms of the number of digits and in fact it will take about 10^(10^8) times the age of universe to build the string alone.
- chx 2y agoOh. It's really not practical.