Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Doubt in Time complexity

$
0
0

There is a question Chef and Numbers. According to Editorial it is purely based on FFT having overall time complexity $O(n * log(n))$. But after crawling other solution i found one of the solution which is Based on Dynamic programming. So the doubt is about it's time complexity which seems to be $O(n^2)$.

Can anyone tell me the full explanation about it's real complexity of that ACsolution?


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>