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.
We need to find the width of number (i.e. the greatest number) entered by user for finding each decimal, octal, haxadecimal and binary equivalent so, that every number gets right shifted accordingly in each iteration for all the formats, not just by calculating width in binary format.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
String Formatting
You are viewing a single comment's thread. Return to all comments →
We need to find the width of number (i.e. the greatest number) entered by user for finding each decimal, octal, haxadecimal and binary equivalent so, that every number gets right shifted accordingly in each iteration for all the formats, not just by calculating width in binary format.