Ad
  • Default User Avatar

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

  • Custom User Avatar

    Approved some time ago

  • Custom User Avatar

    now that i see my mistake feel like an idiot , thank you for helping! still learning :)

  • Custom User Avatar

    String is immutable in Python, so you are returning the original array despite you have reassigned each string to be the correct format

  • Custom User Avatar

    Your solution fails for cases like ['a', 'a', 'a'].

  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    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)

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Great Kata, but should probably be an 8 kyu.

  • Custom User Avatar

    Added the quotes around the strings.

  • Custom User Avatar

    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]

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Unfortunately, you can't delete a comment that has been replied to. Don't worry about it.

  • Loading more items...