Skip to content

Commit 5160737

Browse files
committed
hacks #2 already done
1 parent dfc025d commit 5160737

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
- [x] [Binary to Decimal Converter](https://tausiq.wordpress.com/2009/07/27/uab-2005-problem-3-binary-to-decimal-converter/)
5555
- [x] [Reverse bits](https://leetcode.com/problems/reverse-bits/)
5656
- [x] [Bit Hacks — Part 1 (Basic)](http://www.techiedelight.com/bit-hacks-part-1-basic/)
57-
57+
- [x] [Bit Hacks — Part 2 (Playing with k’th bit)](http://www.techiedelight.com/bit-hacks-part-2-playing-kth-bit/)
5858

5959
## Algorithms
6060

@@ -172,7 +172,6 @@
172172
## To Do
173173

174174
- Bits Manipulation
175-
- [ ] [Bit Hacks — Part 2 (Playing with k’th bit)](http://www.techiedelight.com/bit-hacks-part-2-playing-kth-bit/)
176175
- [ ] [Bit Hacks — Part 3 (Playing with rightmost set bit of a number)](http://www.techiedelight.com/bit-hacks-part-3-playing-rightmost-set-bit-number/)
177176
- [ ] [Bit Hacks — Part 4 (Playing with letters of English alphabet)](http://www.techiedelight.com/bit-hacks-part-4-playing-letters-english-alphabet/)
178177
- [ ] [Bit Hacks — Part 5 (Find absolute value of an integer without branching)](http://www.techiedelight.com/bit-hacks-part-5-find-absolute-value-integer-without-branching/)

src/binary/BitManipulation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package binary;
22

3+
/* Also check: https://www.techiedelight.com/bit-hacks-part-2-playing-kth-bit/ */
34
public class BitManipulation {
45
public static void main(String[] args) {
56
int num = 42; // 0b101010

0 commit comments

Comments
 (0)