Showing posts with label strings. Show all posts
Showing posts with label strings. Show all posts

Tuesday, 12 July 2016

Simple String Substitution

Difficulty:
Easy

Tags:
strings

Instructions:
One of the challenges in implementing Rubeque is performing string substitution. See how well you can do.

Problem and Solution:

Quelle Heure Est-Il?

Difficulty:
Easy

Tags:
dates, strings

Instructions:
Write a function to parse some dates and return a standard format. Hint: the help page might be of use.

Problem and Solution:

Unidentified X Object

Difficulty:
Easy

Tags:
strings, operators

Instructions:
Use comparison operators.

Problem and Solution:

A Man, A Plan, A Canal--Panama!

Difficulty:
Easy

Tags:
strings

Instructions:
A palindrome is a string that is written the same forward as it is in reverse. Write a method to return the longest palindrome in a given string

Problem and Solution:

Separating Numbers with Commas

Difficulty:
Easy

Tags:
strings, regular expressions

Instructions:
Separate numbers with a comma each three digits.

Problem and Solution: