## House robber

Maximum amount you can rob from non adjacent houses

Read More## Codility Challenge: BinaryGap

A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N. For example, number 9 has binary representation 1001 and contains a binary gap of length 2. The number 529 has …

Read More## Codility Demo task: MissingInteger

This is a demo task. Write a function: def solution(A) that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. For example, given A = [1, 3, 6, 4, 1, 2], the function …

Read More## Codility challenge: Minimum number of steps to reduce number to 1

A non-negative integer variable V is given. There are two actions available that modify its value: if V is odd, subtract 1 from it; if V is even, divide it by 2. These actions are performed until the value of V becomes 0. For example, …

Read More## Andela Qualified.io assessment: Question 3

Task Mary is a famous shopkeeper who sells n items in her shop. She assigns each item a unique popularity rating in the inclusive range from 1 to n. The shop only has one shelf, so the items are displayed array-style in a single row spanning from left …

Read More