Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
WHAT
Iclude "aaaabb" string in test.
all characters in the string appear the same amount of times (3 times), so it returns True
"abcabcd" is NOT a valid word because "a" appears twice, "b" appears twice, "c" appears twice, but "d" only appears once!
got the random test with string "p1imv$!nytsvdfrid%3mxgz!h#!pp11imv$$nnyyttssdffrr%%33xxggzzhh##". so there are letters which can appear twice and once, my code says FALSE, but you want it be TRUE. WHY?
Not a kata issue.
Added another example in the description to make it clearer.
Why are you counting 15s or 10s instead? All the info you need is there, read the description again. I've added a second example to make it clearer.
[15,1,15,1,-3,1,-8,1,-9,1,8,1,10,1,-7,1,-4,1,-5,1]
'15' appears 2 times. so '2' appears 0 times. but this kata says it should be equal 1. why?!
[-10,1,-1,1,7,1,10,1,-2,1,4,1,-3,1,-2,1,2,1,-7,1,11,1,4,1,-3,1,12,1,12,1,-2,1]
'-10'appears 1 time. so '1' appears 16 times. but this kata says it should be equal 0 ...
i think this kata is broken or author should give us much more info
im an idiot. I indexed the wrong thing.
Sorry Chrono79!
character ASCII code, not alphabet position. p is 112.
are you sure?
b=2
d=4
f=6
h=8
j=10
l=12
n=14
p=16
or does the indexing change after c?
p is not 16.
Another one of those unresolvable issues uh?
Loading more items...