Комментарии:
Where did n come from?
ОтветитьThank you for the problem explanation, I'm doing this in java, I thought this problem was way harder than I thought, but how you explained it had much more sense than the description, and the problem is not as bad, but my complexity is n^2 which is sad but also interesting since I'm using two for loops to construct the string and print it out, everything else is O(n).
Thanks again, man.
i was struggling with quick_sort. The code was correct but the complexity was too high ( ~ nlogn). I did not realize there was a faster solution. Thanks man
ОтветитьI think hackerrank have some problem... end=' ' operator is not working... Correct me if I am wrong
Ответить