The following codes are merely for reference, and should not be used to solve codewars Katas, copying and pasting code will not add anything to your learning in programming, in addition to being against the CodeWars ToS.
The solutions are just the way I solved the Kata, and it is not necessarily the best way to solve them.
The difficulty of each exercise is divided into eight categories, where Kyu 8 exercises are the simplest, and Kyu 1 exercises are the most complex.