  Easy Ruby ChallengesIntroductory challenges and solutions

Course Material

View all Ruby courses
Next Ruby course
• Challenges
• AB Check

For this challenge you will determine if two characters are separated a specific way in the string. 18252 solutions

• Ex Oh

For this challenge you will traverse a string and determine if there is an equal amount of certain characters. 15453 solutions

• Palindrome

For this challenge you will determine if a string is written the same way forward and backwards. 18350 solutions

• Arith Geo

For this challenge you will determine if numbers within an array follow an arithmetic or geometric sequence. 14386 solutions

For this challenge you will determine if numbers in an array can add up to a certain number in the array. 9463 solutions

• Letter Count I

For this challenge you will determine which word has the greatest number of repeated letters. 8582 solutions

• Second GreatLow

For this challenge you will determine the second lowest and greatest numbers in an array. 14356 solutions

• Division Stringified

For this challenge you will divide two numbers and return them in a certain format. 10558 solutions

• Counting Minutes I

For this challenge you will return the total number of minutes between two times. 6267 solutions

• Mean Mode

For this challenge you will determine if the mode equals the mean in an array. 8242 solutions

• Dash Insert

For this challenge you will be manipulating a string using dashes (-). 9354 solutions

• Swap Case

For this challenge you will be swapping the case of each character in the string. 8617 solutions

For this challenge you will traverse a string searching for all the numbers and then you will add them up. 8581 solutions

• Third Greatest

For this challenge you will determine the third largest string within an array. 8283 solutions

• Powers of Two

For this challenge you will be determining whether or not a number is a power of two. 8885 solutions

For this challenge you will be determining the additive persistence for a given number. 6471 solutions

• Multiplicative Persistence

For this challenge you will be determining the multiplicative persistence for a given number. 5001 solutions

• Off Line Minimum

For this challenge you will be creating a subset of an array. 6727 solutions

• Changing Sequence

For this challenge you will determine when an array changes sequences. 3359 solutions

• Overlapping Ranges

For this practice test you will determine the intersection between two sets. 3048 solutions

• Superincreasing

For this challenge you will determine if each number is greater than the sum of all previous elements in an array. 3045 solutions

• Hamming Distance

For this challenge you will determine the difference between two strings. 2270 solutions

• Rectangle Area

For this challenge you will determine the area of a rectangle. 2568 solutions