1
0
Fork 0
mirror of https://gitlab.com/mfocko/CodeWars.git synced 2024-12-26 14:21:31 +01:00

6kyu: add break camelCase

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2021-12-28 18:16:10 +01:00
parent 3fc8a805ef
commit e394821b7b
No known key found for this signature in database
GPG key ID: 332171FADF1DB90B
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,9 @@
def solution(string)
string.chars.map { |c|
if c == c.upcase
" " + c
else
c
end
}.join
end

View file

@ -214,6 +214,10 @@
- [Detect Pangram](https://www.codewars.com/kata/545cedaa9943f7fe7b000048) - [solution](6kyu/detect_pangram)
### Ruby
- [Break camelCase](https://www.codewars.com/kata/5208f99aee097e6552000148) - [solution](6kyu/break_camel_case)
## 7 kyu
### JS