• ###### omegahmcommented on "Map and Filter to Get a Special Sequence of Integers" kata

It should have been a 9. If you do the summation, it ends up being 8 short. (=558)

• ###### omegahmcreated a suggestion for "Loan Eligibility: part 1" kata

7 kyu seems too low for this kata.

• ###### omegahmcommented on "Turing Machine Emulator" kata

Hahaha, I wrote that comment 3 years ago! I resat the kata and tried again, this time with no hiccups.

• ###### omegahmcommented on "Dice Rotation" kata

Seems to be too hard to be a 7 kyu?

• ###### omegahmcommented on "Lost number in number sequence" ruby solution

If the resulting array is empty, calling first will yield nil, which needs to be converted into 0. This can be done either by using to_i or || 0.

• ###### omegahmresolved an issue on "Get up! The alarm clock is ringing." kata

Thanks. I have made the last newline mandatory in the Ruby tests.

.

• ###### omegahmcreated an issue for "I'm everywhere!" kata

There's a 'С' in the tests. It's not a capital 'C'.

• ###### omegahmcommented on "Insane TA" kata

This comment is hidden because it contains spoiler information about the solution

• ###### omegahmcreated an issue for "Insane TA" kata

The given test cases assume the "Ja"'s and dots to be combined without spaces, while the actual test cases expect them to be seperated by spaces.

• ###### omegahmresolved an issue on "Evenly distribute values in array" kata

I see my flaw. I need to take into account the position of the element in the original array. That way the sequence between say two i in the result becomes the longest.

• ###### omegahmcreated an issue for "Evenly distribute values in array" kata

I'm trying to solve this with JavaScript. I think there's an issue with the random tests.

When I get the following input, the expected is what the tests tell me and the "instead got" is my solution. The expected solution expects the second i before the second a, even the second a appears before the second i in the input.

Input        ['i', 'a', 'd', 'h', 'f', 'j', 'a', 'k', 'j', 'c', 'i', 'e', 'd', 'i', 'a', 'b', 'i', 'h', 'e', 'h', 'g', 'g', 'g', 'j', 'i', 'k', 'k', 'k', 'b', 'f']
^    ^                        ^                   ^
Expected:    ['i', 'a', 'd', 'h', 'f', 'j', 'k', 'c', 'e', 'b', 'g', 'i', 'a', 'd', 'h', 'f', 'j', 'k', 'e', 'b', 'g', 'i', 'a', 'h', 'j', 'k', 'g', 'i', 'k', 'i'],
^    ^                                                 ^    ^
instead got: ['i', 'a', 'd', 'h', 'f', 'j', 'k', 'c', 'e', 'b', 'g', 'a', 'j', 'i', 'd', 'h', 'e', 'g', 'k', 'b', 'f', 'i', 'a', 'h', 'g', 'j', 'k', 'i', 'k', 'i']
^    ^                                                 ^         ^

Even the second j should be before the second i.

• ###### omegahmcreated an issue for "Turing Machine Emulator" kata

I keep getting an error

TypeError: Cannot read property '9' of undefined
at transitionFunction (test.js:127:56)
at machine (test.js:10:50)
at Context.<anonymous> (test.js:144:21)

when calling the transitionFunction, which is really annoying. My solution works for the given tests and I cannot see what is wrong with me calling the way I do.

• ###### omegahmcommented on "L1: Set Alarm" ruby solution

Since the two arguments are both booleans we can use them directly when comparing. This solution asks if I'm employed and (&&) not (!) on vacation. Since this is Ruby, the last executed line in a method is automatically returned.

• ###### omegahmcommented on "List of all rationals - going further" kata

This was not a 7 kyu in my opinion.