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.
It is really O(1) - just take one log2 and few other simple math operations. Loop is really needn't at all.
One hint - in each column sum of index and value is constant.
Strange Counter
You are viewing a single comment's thread. Return to all comments →
It is really O(1) - just take one log2 and few other simple math operations. Loop is really needn't at all. One hint - in each column sum of index and value is constant.