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.
lol
Approved.
I didn't even know there's a thing like HashSet.
Thank you for mentioning it.
I think I changed everything you requested, would you mind taking another look?
You still lowercase
vowel
in the reference solution in the test class. Please also make that method private.I meant to use a
HashSet<char>
for the vowels to have a better lookup but maybe this is not that necessary because it is a 7kyu after all and the examples are very short.Thank you very much!
A lot more wrong than I thought.
word.ToString()
tonew string(word)
Random
Objectvocal
tovowel
vowel
I didn't understand the "Reference solution could use a Set or something for the vowel checks instead of a list." part.
What exactly do you mean by Set?
True, I will change that.
Why is
vocal
called that? It'svowel
in English orVokal
in German.word.ToString()
is not how you create a string from achar
array. All random tests test the string"System.Char[]"
Random
object for every number. Instanciate it once and directly callNext()
j < word.Length
0
andbuchstaben.Length
.vocal
as it is already lowercase.same
Seems familiar:
https://www.geeksforgeeks.org/padovan-sequence/