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.
Took longer than it should. Have a blessed day... NOT
🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀
The answer is written in two examples - look carefully
C# tests generate warnings
Sorry, cannot understand "Squeeze them from the left and right sides to the middle, until the characters of some lines come together"
As in testcase 2 line 1 has no spaces in both parts , so both parts are already together, and we don't need to move them!
left = """
II
LLL
oooo
vvvvv
eeeeee
YYYYYYY
oooooooo
uuuuuuuuu"""
right = """
IIIIIIII
LLLLLLL
oooooo
vvvvv
eeee
YYY
oo
u"""
But the test demands to squeeze all other strings, eliminating spaces before sccond parts....
Enabled in this fork
Approved
Why not add m<=n to the description? It's a bit lame to implement a swap of arguments for a 7 Kyu kata.
Lua translation!
Python fixed in this fork
(16 --> 80 out of 384 solutions invalidated)
Ruby fixed in this fork
(5 --> 14 out of 63 solutions invalidated)
JavaScript edge cases added in this fork + edit due to
assert.deepEqual
failing to compare+0
&-0
(0 --> 105 out of 493 solutions invalidated)
Haskell edge cases added directly in the edit window
(0 --> 5 out of 39 solutions invalidated)
This comment is hidden because it contains spoiler information about the solution
On it.
Sorry for the delayed response, didn't get a notification for it.
does this have solution?
game_map = '''+------+
|......|
|BBB...|
|......|
|......|
|..BB..|
|......|
+------+'''
I feel extremely silly right now. I figured out my problem. I was not reading ALL the instructions. Thanks for the response.
See the initial code in javascript:
The function's name should be
replace
don't change it. Read this too: https://docs.codewars.com/training/troubleshooting/#post-discourseLoading more items...