We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
According to the editorial, the intended solution has time complexity of O((d^2 + n^2) * (2^n)), which means it is of the order 10^8. Does this always fit in the time limit?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Most Elegant Sequence
You are viewing a single comment's thread. Return to all comments →
According to the editorial, the intended solution has time complexity of O((d^2 + n^2) * (2^n)), which means it is of the order 10^8. Does this always fit in the time limit?