Hello ,
lets start from a basic question that can be solved using Binary number's Knowledge.
Basically in above question you are given n number of poison bottle, and t number of trial you can do ,how many minimum pig you need to find the bottle with poison.
Solution using Binary number knowledge
Trick 1
We can Hash