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.
"For example, the number 26 as an input should return 3^"
Is this correct or should it be '3£' ?
The tests in the python 3.6 version ignore the offset. (Sample test work fine, the actual tests need fixed)
This times out:
Does the python test suite generate within 12s?
Great kata, thanks
nice!
Instruction: An empty string should match
Test: Youre RegEx should NOT match ''
Hi,
Please could someone explain this to me:
quote from details:
''123,220 is a polydivisible base 6 number (and a polydivisible base 10 number when converted to 11100 in base 10).''
I am struggling to see how 11100 is polydivisible in base 10, as 11 % 2 == 1 (and 1110 % 4 == 2)
Thanks
The current python sample test needs looked at.
2 issues:
Firstly it should be 'assert_equals' rather than 'expect_equals'
Secondly either change the required length to 6 rather than 7, or add a space in line 1.
test.expect_equals(justify('123 45 6', 7), '123 45\n6')
should read
test.assert_equals(justify('123 45 6', 6), '123 45\n6') # note asked for length now 6 rather than 7, to match answer
Thanks for the kata!
Hi,
Thanks for the nice kata.
Just so you know: the python 3.43 initial test throws an error when the test is passed.
No issue when running the proper tests.
Python 3.4.3: 5th test is '18%2' with result 9. I presume that is a typo and the '%' should be '$'?
Also I pass all test other than a small number where there is a 10th or more decimal place rounding error.
For example:
874.1153846153846 should equal 874.1153846153845
Note: a 16 digit answer is required
161.1598611111111 should equal 161.15986111111113
Note: a 17 digit answer is required
is this part of the challenge because there seems to be arbitary precision in answers and no guidance in the notes.
Hi,
Thanks for the kata.
There is a typo in the Test Example:
Step 4 — shift the order of characters for each space-separated substring to the right by 10:
'eu vni seer .I oufy wi shtom eak apan frplepie som atcr ch,yo ustfum rsi htinventt'
The second last 'word' should read 'sir' not 'rsi'
I love this solution. Easy to understand, concise and efficient.