Ruby X

In this page I will post some of the examples that I did before.

I don’t know if happen to you?, some times you are coding and here is a little problem that you remember that you deal with it before, and you have a clear idea of how it works, just the syntax is a little off, and google it might take long time, you just need to take a quick pick at the code that you did one time, well that happen to me before and for that reason, I decide to put some notes here to give me a quick reminder.


If you can read this…

From codewars.com by Edxael (that’s me) Description: The idea for this Kata came from 9gag today.here You'll have to translate a string to Pilot's alphabet ...
.....

Prime Factors

From codewars.com by Edxael (that’s me) Description: Inspired by one of Uncle Bob's TDD Kata Write a function that generates factors for a given number ...
.....

Alien Accent

From codewars.com by Edxael (that’s me) Description: The Story: Aliens from Kepler 27b have immigrated to Earth! They have learned English and go to our ...
.....

Make a square box!

From codewars.com by Edxael (that’s me) Description: Easy; Make a box Given a number as a parameter, return an array containing strings which form a ...
.....

Don’t give me five!

From codewars.com by Edxael (that’s me) In this kata you get the start number and the end number of a region and should return the ...
.....

Series of integers from m to n

From codewars.com by Edxael (that’s me) Description: Write a function generateIntegers/generate_integers that accepts two arguments m/$m and n/$n and generates an array containing the integers ...
.....

Compare an array of hashes against each other, both ways

From Stackoverflow by Edmundo (that’s me) The question: I need to find the differences between saved_start and incoming_start, but also between incoming_start and saved_start. saved_start ...
.....

Valid Braces

From codewars.com by Edxael (that’s me) Description: Write a function called validBraces that takes a string of braces, and determines if the order of the ...
.....

Break camelCase

From codewars.com by Edxael (that’s me) Description: Complete the solution so that the function will break up camel casing, using a space between words. Example ...
.....

Help Kiyo きよ solve her problems LCM Fun!

From codewars.com by Edxael (that’s me) Description: Help Kiyo きよ solve her problems LCM Fun! Kiyo has been given a series of problems and she ...
.....

The Hashtag Generator

From codewars.com by Edxael (that’s me) Description: The marketing team are spending way too much time typing in hashtags. Let's help them with out own ...
.....

“EULER ” & “RB Calisthenics” (2)

This post is Practice for the previous post "Project EULER" The problems are just practice of the problems that I did in a previous post, ...
.....

Cat and Mouse – Easy Version

From codewars.com by Edxael (that’s me) Description: You will be given a string (x) featuring a cat 'C' and a mouse 'm'. The rest of ...
.....

Scramblies

From codewars.com by Edxael (that’s me) Write function scramble(str1,str2) that returns true if a portion of str1 characters can be rearranged to match str2, otherwise ...
.....

Viking: Euler & Calisthenics

In the Viking Prep-Work there are two post that I would like to add to this examples series, this were my first real exposure to ...
.....

All Star Code Challenge #1

From codewars.com by Edxael (that’s me) this is a super easy. This Kata is intended as a small challenge for my students All Star Code ...
.....

Frequency sequence

From codewars.com by Edxael (that’s me) Description: Return an output string that translates an input string s/$s by replacing each character in s/$s with a ...
.....

Rot13

From codewars.com by Edxael (that’s me) ROT13 is a simple letter substitution cipher that replaces a letter with the letter 13 letters after it in ...
.....

Remove a exclamation mark from the end of string

From codewars.com by Edxael (that’s me) Description: Remove a exclamation mark from the end of string. For a beginner kata, you can assume that the ...
.....

Two to One

From codewars.com by Edxael (that’s me) Instructions: Take 2 strings s1 and s2 including only letters from ato z. Return a new sorted string, the ...
.....

Ones and Zeros

From codewars.com by Edxael (that’s me) Instructions: Given an array of one's and zero's convert the equivalent binary value to an integer. Eg: [0, 0, ...
.....

Which are in?

From codewars.com by Edxael (that’s me) Given two arrays of strings a1 and a2 return a sorted array r in lexicographical order of the strings ...
.....

Who likes it?

From codewars.com by Edxael (that’s me) You probably know the "like" system from Facebook and other pages. People can "like" blog posts, pictures or other ...
.....

Create Phone Number

From codewars.com by Edxael (that's me) Write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of ...
.....

Write Number in Expanded Form

You will be given a number and you will need to return it as a string in Expanded Form. For example: expanded_form(12); # Should return ...
.....

Vampire Numbers

Instructions 6 * 21 = 126 # 6 and 21 would be valid 'fangs' for a vampire number as the # digits 6, 1, and ...
.....

Ruby Calisthenics

Here is some practice on the Prep-Work of the Viking Code School. in the following section we will be developing the solution to some challenges ...
.....

Project Euler

Multiples of 3 and 5 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, ...
.....