All Questions
5 questions
5
votes
1
answer
1k
views
ROT13 cipher challenge (HackerRank)
I just started learning Ruby and thought that this relatively simple HackerRank challenge would be a good opportunity to try to write clean, tested and documented code without getting bogged down in ...
10
votes
2
answers
8k
views
Converting Morse Code
Challenge
Write a program which reads a file containing Morse Code and outputs the conversion.
Specifications
The first argument is a path to a file.
The file contains multiple lines.
Each line ...
2
votes
1
answer
993
views
Anagram in Scala
Code
...
2
votes
1
answer
1k
views
TDD: String Calculator Kata
String Calculator
Create a simple String calculator with a method int Add(string numbers).
The method can take 0, 1 or 2 numbers, and will return ...
1
vote
2
answers
680
views
Counting length-2 substrings that are common to two strings at the same offset -- Python
I solved the CodingBat task:
Given 2 strings, a and b, return the number of the positions where they contain the same length 2 substring. So "xxcaazz" and "xxbaaz"
yields 3, since ...