6 kyu
Dictionary sequence
66 of 113afonsomatos
Description:
Task
In this kata, your job is to return a lazy sequence consisting of strings containing the letters of the alphabet in both lowercase and uppercase.
Sequence
The sequence follows a recursive pattern:
- first return each letter of the alphabet (lowercase before uppercase)
- then return each letter of the alphabet appended to each element retrieved from a recursive call to the sequence
- the sequence is infinite
a, b, c, ... y, z, A, B, C, ..., Y, Z, aa, ab, ac, ..., az, aA, ..., aZ, ba, bb, ..., bA, ..., bZ, ..., ca, ... cZ, ...
......, Za, Zb ..., ZZ, aaa, aab, ..., aaZ, aba, abb, ..., abZ, aca, ..., ..., ..., ZZZ, aaaa, aaab, ..
Good luck!
Algorithms
Similar Kata:
Stats:
Created | Aug 5, 2015 |
Published | Aug 5, 2015 |
Warriors Trained | 612 |
Total Skips | 30 |
Total Code Submissions | 428 |
Total Times Completed | 113 |
Haskell Completions | 66 |
JavaScript Completions | 51 |
Total Stars | 16 |
% of votes with a positive feedback rating | 74% of 35 |
Total "Very Satisfied" Votes | 23 |
Total "Somewhat Satisfied" Votes | 6 |
Total "Not Satisfied" Votes | 0 |