Skip to content

andretecnologia/find-binary-gaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Challange for study purposes

Create an algorithm to solve the BDD described bellow:

Given

9

When I count the greatest number of zeros rounded by one into the Binary representation of the number

1001

Then Return

2

And

Given

529

When I count the greatest number of zeros rounded by one into the Binary representation of the number

1000010001

Then Return

4

And

Given

1041

When I count the greatest number of zeros rounded by one into the Binary representation of the number

10000010001

Then Return

5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages