# Persistent Bugger

### CodeWars 6kyu

Write a function, persistence, that takes in a positive parameter num and returns its multiplicative persistence, which is the number of times you must multiply the digits in num until you reach a single digit.

# Count Odd Numbers below n

### CodeWars 8kyu

Given a number n, return the number of positive odd numbers below n, EASY!

# My head is at the wrong end!

### CodeWars 8kyu

You’re at the zoo… all the meerkats look weird. Something has gone terribly wrong - someone has gone and switched their heads and tails around!

Save the animals by switching them back. You will be given an array which will have three values (tail, body, head). It is your job to re-arrange the array so that the animal is the right way round (head, body, tail).

Same goes for all the other arrays/lists that you will get in the tests: you have to change the element positions with the same exact logics - simples!

# Century From Year

### CodeWars 8kyu

#### Introduction

The first century spans from the year 1 up to and including the year 100, The second - from the year 101 up to and including the year 200, etc.

Given a year, return the century it is in.

Input , Output Examples ::

# Trapping Rain Water

### LeetCode 42

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.

The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. In this case, 6 units of rain water (blue section) are being trapped. Thanks Marcos for contributing this image!

# Binary Tree Level Order Traversal

### LeetCode 102

Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level).

For example:
Given binary tree [3,9,20,null,null,15,7],

return its level order traversal as:

# Excel Sheet Column Number

### LeetCode 171

Given a column title as appear in an Excel sheet, return its corresponding column number.

For example: