Watch and track your favorite playlist.
Curated by: Anurag Affection (122 videos)
162 Get ith bit example -- find the 2nd bit of 15 -- 15 = 1111 in binary -- 2nd bit of 15 = 1 example -- find the 1st bit of 2 -- 2 = 10 in binary -- 1st bit of 2 = 1 Notes -- 1 0 1 0 = 10 in decimal -- 3 2 1 0 = indexing so -- zeroth bit of 10 = 0 -- 1st bit of 10 = 1 -- 2nd bit of 10 = 2