mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-08-02 11:18:00 +08:00
misc: restructure contents
This commit is contained in:
9
contents/algorithms/binary.md
Normal file
9
contents/algorithms/binary.md
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
id: binary
|
||||
title: Binary
|
||||
---
|
||||
|
||||
- How do you verify if an interger is a power of 2?
|
||||
- Write a program to print the binary representation of an integer.
|
||||
- Write a program to print out the number of 1 bits in a given integer.
|
||||
- Write a program to determine the largest possible integer using the same number of 1 bits in a given number.
|
Reference in New Issue
Block a user