TCS
Company
Numerical Ability
Number System
Numbers from 1 to 10^2012 are given, there are 'm' no of 1's and 'n' no of 2's.
Then what is (m-n).
Read Solution (Total 6)
-
- ans=1
let consider from 1 to 10^2(no. of 1s and 2s are same in between 1 and 99)as no.of 1s 1 to 9=1,10-19=11,20-29=1,30-39=1,40-49=1,50-59=1,50-69=1 ....90-99=1
2s 1 to 9=1,10-19=1,20-29=11,30-39=1.............................90-99=1
the no. of 1s and 2s between 1 and 10^2 -1 are same
similarly no. of 1s and 2s btwn 1 and 100^2012-1 will be same 1 more 1 will be in 10^2012 - 11 years agoHelpfull: Yes(33) No(0)
- let us consider 1-100 here no of 1's m =21 and no.of 2's n = 20 there by m-n=1 similary from 1 to (10^2012-1) no.of 1's=no.of 2's but in last term 10^2012 a one is added there by the ans is 1.
- 11 years agoHelpfull: Yes(3) No(0)
- 1 is the answer
- 11 years agoHelpfull: Yes(2) No(0)
- answer is 1
no. of 1's and 2's are same upto 1 to {(10^2012)-1} - 11 years agoHelpfull: Yes(0) No(0)
- 1 is my answer
- 10 years agoHelpfull: Yes(0) No(0)
- it can't be tcs question .
- 10 years agoHelpfull: Yes(0) No(0)
TCS Other Question