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.
This comment is hidden because it contains spoiler information about the solution
Approved some time ago
now that i see my mistake feel like an idiot , thank you for helping! still learning :)
String is immutable in Python, so you are returning the original array despite you have reassigned each string to be the correct format
Your solution fails for cases like ['a', 'a', 'a'].
OP solved it, closing
The first non-working code is you will return the result as a string after the first iteration. And the last line of code will not be reached (unless
lines
is an empty array)This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Great Kata, but should probably be an 8 kyu.
Added the quotes around the strings.
whoever wrote the randomized tests for this kata is a 'genius'! which part of the following is "a list of strings"???
Testing with: [N, u, L, O, d, k, g, j, e, Z, B, J, L, n, V, s, q, z, Q, f, {, O, B, e, F, l, J, j, I, D, I, R, d, i, [, B, K, E, R, B, V, C, j, O, B, D, L, E, Y, O, {, v, W, [, R, D, k, k, Q, d, o, M, I, F, p, i, a, S, o, Y, i, D, a, i, C, G, t, N, K, F, p, B, G, x, L, V, l, Z, l, A, Y, D, n, b, v, a, d, I, t, g]
Without code it is difficult to find what is the flow, i think it is okay to post code as i can see many are doing it.
Okay, I'm new to Codewars, so please don't come for me if I an doing something wrong in my post. Just tell me and I'll adjust. I am having a problem with this Kata. I pass all the tests except the one "must accept many values". I cannot find my problem. I read through some previous Q and A and noticed that I was, in fact, altering the original array and I changed that, but still having the same problem. I don't know how to see the test case that I am failing. Is it okay to paste code here if I mark it as spoiler? Can anyone help? Let me know and I'll send my code.
Unfortunately, you can't delete a comment that has been replied to. Don't worry about it.
Loading more items...