brewersfan1976

kill_kth_bit.rb

Sep 25th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.05 KB | None | 0 0
  1. def killKthBit(n, k)
  2.     return n & ~(1 << k - 1)
  3. end
Advertisement
Add Comment
Please, Sign In to add comment