I solved Vikrant's ques in 3 tries......
Make 4 group A,B,C and D, 2 pill in each group...
Now compare A and B...
1. If A >B
comare A and C
if A equal to C then the faulty pill in B and lighter in weight
if A>C then faulty pill is in A and heavier .
now compare the pill of either A or B accordin to result of 2nd try.1 pill each side of balance.
2. if A=B then
compare A and C...
If A>C then the faulty pill in C and lighter in weight
If A<C then the faulty pill in C and heavier..
now try acording to previous and found faulty pill
If A=C then the fault pill is in D.
compare 1 pill from D say D1 to 1 pill from any A,B or C
if equal then D2 is faulty other wise D1 ia faulty
3. If A<B then try according to case 1.
Make 4 group A,B,C and D, 2 pill in each group...
Now compare A and B...
1. If A >B
comare A and C
if A equal to C then the faulty pill in B and lighter in weight
if A>C then faulty pill is in A and heavier .
now compare the pill of either A or B accordin to result of 2nd try.1 pill each side of balance.
2. if A=B then
compare A and C...
If A>C then the faulty pill in C and lighter in weight
If A<C then the faulty pill in C and heavier..
now try acording to previous and found faulty pill
If A=C then the fault pill is in D.
compare 1 pill from D say D1 to 1 pill from any A,B or C
if equal then D2 is faulty other wise D1 ia faulty
3. If A<B then try according to case 1.