Ad
  • Custom User Avatar

    this is fine???

  • Custom User Avatar

    Retired.

  • Custom User Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/126.
    Please join the discussion to help us identify duplicate kata and retire them.

  • Custom User Avatar

    The Clojure version is almost certainly broken.

    I just can 't see how the expected output in the random tests make sense.

    Given inputs

    ("zPEJS" "BFPxI" "," "," "," "," "vFhKk" "," "," "," "," "," "RHFQh" ".")

    It expects the result to be:

    "zPEJS BFPxI, ,, , vFhKk, ,, ,, RHFQh."

    This section makes no sense
    BFPxI, ,, , vFhKk

    Another example:

    Input

    ("NkVcr" "," "," "DlWOv" "beeOm" "," "WYCCh" "," "," "kfaEC" "IeGwS" "xellI" "." ".")

    Expected:

    "NkVcr, , DlWOv beeOm, WYCCh, , kfaEC IeGwS xellI."

    Why the spaces between the commas?

    Another example:

    Input
    ("fdNXT" "," "iiUuU" "," "," "," "," "," "," "xDLAz" "," "," "eywFI" "." ".")

    Expects this bizarness:
    "fdNXT, iiUuU, ,, ,, , xDLAz, , eywFI."

    What is going there? A Space after the comma, then 2 commas without a space, then a space, then 2 more without a space, then a space?

    It looks like any number of commas, has to be broken up into blocks of 2, and be surrounded by spaces. This is wrong.

    This is clearly broken.

    If it wants every pair of commas to treat the 2nd comma like a word, this makes no sense. A comma isn't a word.

    But this one breaks the above:

    Here the input is:

    ("Gjnjv" "lXgCV" "," "," "," "," "," "," "," "RtzYV" "ewWZE" "." ".")

    ANd it expects:

    "Gjnjv lXgCV,, ,, ,, , RtzYV ewWZE."
                ^^ why no space here between the 2 commas?
    

    IT seems different to the example above. Is it something to do with odd / even combinations of commas?

  • Custom User Avatar
  • Custom User Avatar
  • Default User Avatar

    Why not write inputs in tests?

  • Custom User Avatar

    just re-wrote my Clojure code in Python (pretty much verbatum) and it passed all the tests. In both implementations word,,,,word --> word,,,,SPACE word.
    .. to me this is a correct and resonable interpretation of th rules.

  • Custom User Avatar

    Yes, I am facing the same confusion. I am certain I can make my program behave in the way the tests are demanding. What I really cannot understand is what interpreation of the rules would lead to the input output behaviour you documented, ie:
    word,,,,word --> word, ,, , word
    does not seem to follow from the rules. ( I am also working in Clojure )

  • Custom User Avatar

    No test cases composed of multiple sentences

  • Custom User Avatar

    Can someone explain why this:

    ["SWmBK" "," "," "," "," "aXeok" "," "EoULa" "," "," "dWnzl" "jckXr" "," "rTDdP"" yReZA" "." "." "."]

    Should result in

    "SWmBK, ,, , aXeok, EoULa, , dWnzl jckXr, rTDdP yReZA."

    Why the space afte rthe first comma, but no space between ,, but then a space after 3rd comma and then space after 4.

    This is in clojure

  • Custom User Avatar

    No random tests in JavaScript (at least).

  • Default User Avatar

    Great kata! Thoroughly enjoyed, first in a while that's made me write way more code than I needed to, so will learn a good deal from this one.

  • Custom User Avatar

    Added random tests for python

  • Custom User Avatar

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

  • Loading more items...