Skip to content

NadjetCoeurbouche/task14-binarygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary Game

Given an array of integers of ones and zeroes, return the first position and the length of the longest consecutive zeroes sequence.

Example 1

{
Input  : binaryArray [10] = {1,1,0,0,0,0,0,0,0,0}
Output : "largest squence of zero has 8 zeros and it stars from index i = 2"
binaryArray has only ones and zeroes elements. 

        }
}

Example 2

{
Input  : binaryArray [10] = {1,0,1,0,0,1,0,0,0,0}
Output : "largest squence of zero has 4 zeros and it stars from index i = 6"
binaryArray has only ones and zeroes elements. 

        }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages