You find yourself in a strange place guarded by two guards.One of the guard always say truth while other always lies.You don't know the identity of the two.You can ask only one question to go out from there. What should you ask?
You have 1023 apples and 10 bags. You have to distribute these apples in these 10 bags in any way you choose. But when I ask for a certain number of apples you have to give them in terms of bags without transferring the apples from other bags. How do you distribute the apples?
There is a shop where written:
Buy 1 for $1
10 for $2
100 for $3
I needed 999 and still only paid $3. How could this be financially viable for the shop-keeper?