Skip to content

SercanKaraoglu/Codility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Codility

Binary Gap

Find longest sequence of zeros in binary representation of an integer. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/Binary%20Gap.sc

CyclicRotation

Rotate an array to the right by a given number of steps. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/CyclicRotation.sc

OddOccurrencesInArray

Find value that occurs in odd number of elements. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/OddOccurrencesInArray.sc

FrogJmp

Count minimal number of jumps from position X to Y. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/FrogJmp.sc

TapeEquilibrium

Minimize the value |(A[0] + ... + A[P-1]) - (A[P] + ... + A[N-1])|. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/TapeEquilibrium.sc

PermMissingElem

Find the missing element in a given permutation. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/PermMissingElem.sc

FrogRiverOne

Find the earliest time when a frog can jump to the other side of a river. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/FrogRiverOne.sc

###PermCheck

Check whether array A is a permutation. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/PermCheck.sc

###Missing Integer

Find the minimal positive integer not occurring in a given sequence. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/MissingInteger.sc

###Max Counters

Calculate the values of counters after applying all alternating operations: increase counter by 1; set value of all counters to current maximum. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/MaxCounters.sc

###Passing Cars Count the number of passing cars on the road. https://github.com/SercanKaraoglu/Codility/blob/master/src/main/scala/PassingCars.sc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages