Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!

# ZerosOnesTwos...

Arjun Shastry
Ranch Hand
Posts: 1901
1
This was asked during one test by one company recently.
"-0s -1s -2s -3s -4s -5s -6s -7s -8s -9s"
Replace - with numbers(from 0 to 9. Any digit can appear more than once) so that above expression makes sense.
For example: 10s 21s makes sense as there are one zeros and two ones. where as 10s 21s 32s is wrong bcos last part says there are three 2s where as there are only two 2s in expression.
[ December 01, 2003: Message edited by: Capablanca Kepler ]
[ December 02, 2003: Message edited by: Capablanca Kepler ]

Shalu Ban
Ranch Hand
Posts: 72
Hi,
Is it :
10s 81s 22s 13s 14s 15s 16s 17s 28s 19s
:roll:
[ December 02, 2003: Message edited by: Shal Ban ]

Arjun Shastry
Ranch Hand
Posts: 1901
1
Originally posted by Shal Ban:
Hi,
Is it :
10s 81s 22s 13s 14s 15s 16s 17s 28s 19s
:roll:
[ December 02, 2003: Message edited by: Shal Ban ]

Hmm,no,You say there are 22s but there are actually three 2s,third one preceding 8s.

Timmy Marks
Ranch Hand
Posts: 226
on the right side of everything, every number appears.
Therefore, no number will be 0xs. That means that the 0

Timmy Marks
Ranch Hand
Posts: 226
10s 71s 32s 23s 14s 15s 16s 27s 18s 19s

Arjun Shastry
Ranch Hand
Posts: 1901
1
Correct .Thats the answer I also got.