100% correct solutions for codility problems
- Iterations
- BinaryGap - Find longest sequence of zeros in binary representation of an integer
- Arrays
- OddOccurrencesInArray - Find value that occurs in odd number of elements
- Time Complexity
- PermMissingElem - Find the missing element in a given permutation
- FrogJmp - Count minimal number of jumps from position X to Y
- Counting Elements
- PermCheck - Check whether array A is a permutation
- FrogRiverOne - Find the earliest time when a frog can jump to the other side of a river
- MissingInteger - Find the minimal positive integer not occurring in a given sequence
- Prefix Sums
- PassingCars - Count the number of passing cars on the road
- GenomicRangeQuery - Find the minimal nucleotide from a range of sequence DNA
- MinAvgTwoSlice - Find the minimal average of any slice containing at least two elements.
- Sorting
- Distinct - Compute number of distinct values in an array
- Triangle - Determine whether a triangle can be built from a given set of edges
- MaxProductOfThree - Maximize A[P] * A[Q] * A[R] for any triplet (P, Q, R)
- NumberOfDiscIntersections - Compute the number of intersections in a sequence of discs
- Stacks and Queues
- Maximum slice problem
- MaxProfit - Given a log of stock prices compute the maximum possible earning
- MaxSliceSum - find the maximum sum of any slice of A
- Prime and composite numbers
- CountFactors - Count factors of given number n
- MinPerimeterRectangle - find the minimal perimeter of any rectangle whose area equals N