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.
1) number with different bit length (easy one to handle) EX: 1 2 3 4 , length of element : 1 2 2 3
2) all number of same bit length Ex: 8 9 10 11 12, length of element : 4 4 4 4 ,for this case see the pattern for minimum values of n
bit length means length of number in binary form
Example : 5 --> 101, bit length = 3
hope this help :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Yet Another Minimax Problem
You are viewing a single comment's thread. Return to all comments →
Hint : No need of tries for this question
There will be two cases only
1) number with different bit length (easy one to handle) EX: 1 2 3 4 , length of element : 1 2 2 3 2) all number of same bit length Ex: 8 9 10 11 12, length of element : 4 4 4 4 ,for this case see the pattern for minimum values of n
bit length means length of number in binary form Example : 5 --> 101, bit length = 3
hope this help :)