Bit Manipulation Tutorial

Правка en1, от __LOOSER__, 2022-07-26 22:06:52

Hello ,

lets start from a basic question that can be solved using Binary number's Knowledge.

LeetCode Poor Pig

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский __LOOSER__ 2022-07-28 01:29:26 211 Tiny change: 'gths](httphttps://le' -> 'gths](https://le' (published)
en3 Английский __LOOSER__ 2022-07-27 23:11:33 1394 Tiny change: 'oiler>\n\n2. We ' -> 'oiler>\n\n\n\n\n2. We '
en2 Английский __LOOSER__ 2022-07-27 20:39:08 3825 Tiny change: 'stant fact of 26 in ' -> 'stant factor of 26 in '
en1 Английский __LOOSER__ 2022-07-26 22:06:52 1293 Initial revision (saved to drafts)