I also have no idea what is meant by "vertexs".
Doing the C-version.
While I realize this is an old kata, it is extremely unhelpful. Both the sample tests and attempt have excacly one error-message:
'''The expression areEqual is false.'''
Being available for 3 years has only yielded 20 solutions.
No need to handle double spaces.
The regular expression (WUB)+ does not match WUB but as many as possible consecutives WUB (because of +).
For example, in the string STARTWUBWUBWUBBEND, a unique match is detected (WUBWUBWUB) and replaced by a unique space.
Hope this helps.
I don't understand how this handles double spaces. Could someone explain, please?
Clever but you pay n*log(n) for the sort.
Thanks for this great kata;-)
Юкихиро создавал язык Руби , с главной целью - код должен быть максимально понятным и лёгким в чтении . Ваша решении может быть сколько угодно хитрым и гениальным - но вы нарушаете главное в руби - лёгкость и понятность ! Налепили кучу в методов в одну строку.
yes, it clearly does not matter in this kata
Context is important. In this context, only one variable was necessary. If two variables were necessary it'd make sense to leave them as two separate variables, and in that context I am sure most would make the appropriate decision that provides the best solution to optimize their performance, completeness, and simplicity of their codebase
while it clearly does not matter in this kata, the "why not" may come into play where one should consider whether the a and b in the original setup are potentially required somewhere else in the code landscape. eliminating them may turn out to be disasterous. this is pure supposition, but perhaps worth consideration
whats cheatin about it
lol the kata did say it was supposed to store "codewa.rs"
This comment is hidden because it contains spoiler information about the solution