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.
- All Contests
- HourRank 11
- Irresponsible Numbers
- Discussions
Irresponsible Numbers
Irresponsible Numbers
Sort by
recency
|
8 Discussions
|
Please Login in order to post a comment
Anyone who's all test cases are passing in Java ?
Kindly share code.
I'm unable to pass all test cases.
I am looking at the input and expected output for test case 1 and the percentage of irresponsible numbers is 97%+ (input is a 6 digit number and n is 1). How is that possible ?
Can anyone tell me whats wrong with this code: http://pastebin.com/BtUWTe6E
I think the answer is simply 40% of total numbers from 1 to ntimesx;
because every 4/10 numbers are responsible from 1-10, every 40 numbers are irresponsible from 1-100, 400 from 1 to 1000 and so on.
Found 4 pairs for Number less then 11: 5+6
6+7
7+8
8+9
and 5 unique numbers. Does X a prime number?