Ad
  • Custom User Avatar

    @JohanWiltink

    Yes. Thanks for producing (the Haskell version at least) and updating the kata!

    Regards,

    eod

  • Custom User Avatar

    I think the definition of what every other word means is not reflected in your test coverage. Here are two examples which demonstrate my point:

    "Reverse this string, please!"

    Here "this" is the first other word and "please" is clearly the second other word.

    Nothing surprising here.

    " fkwbe csnou vcxj gv"

    In this example, I expect the first other word to be "csnou" but your tests seem to want "fkwbe" to be the first other word. This does not really make any sense to me unless there is something that I'm missing.

    I hope this explanation makes sense.

    Regards!

    P.S. This was uncovered in the Haskell tests. If that matters.

  • Custom User Avatar

    This is more efficient than my previous solution. The last solution's complexity is O(n^2). This is O(n*log(n)) in the best case I am pretty sure.

  • Custom User Avatar

    My solution does not show up in the solutions page for some strange reason. Has something like this happened to anyone else?

  • Custom User Avatar

    I just wanted to see how far I could get away with pointfree nonsense. This is not a serious solution at all.

  • Custom User Avatar

    This is a cool little problem. Thanks!

  • Custom User Avatar

    I don't think there should be a Haskell version of this problem. If you take a look at the Haskell solutions, you'll see that this task is rather trivial.

  • Custom User Avatar

    I am getting this error when I try to submit my solution:

    /tmp/haskell117714-14-6k3x7n.jtpk1sv2t9/Postfix/Tests.hs:23:7:
    No instance for (Show t0) arising from a use of property' The type variable t0' is ambiguous
    Note: there are several potential instances:
    instance Show Test.HUnit.Base.Counts
    -- Defined in Test.HUnit.Base' instance Show Test.HUnit.Base.Node -- Defined in Test.HUnit.Base'
    instance Show Test.HUnit.Base.State -- Defined in Test.HUnit.Base' ...plus 291 others In the expression: property In a stmt of a 'do' block: property $ \ x y z -> begin push x push y push z end == (z :: Int) In the second argument of ($)', namely
    `do { property
    $ \ x y z -> begin push x push y push z end == (z :: Int) }'

    Do you have any pointers as to what the problem might be? Or could it be on your end?

  • Custom User Avatar

    I should probably clean this up at some point in time. Anyway, it would be great to hear anyone's thoughts about my solution.

  • Custom User Avatar

    This kata's description is terrible! Please fix it.

  • Custom User Avatar

    When I run my code after clicking the ATTEMPT button in the lower left, I get this error message:

    /tmp/haskell1161127-18-1tvrs1g.l6xadzpvi/Codewars/Kata/Dec2FactTest.hs:10:1: Warning:
    Tab character

    /tmp/haskell1161127-18-1tvrs1g.l6xadzpvi/Codewars/Kata/Dec2FactTest.hs:11:1: Warning:
    Tab character

    /tmp/haskell1161127-18-1tvrs1g.l6xadzpvi/Codewars/Kata/Dec2FactTest.hs:12:1: Warning:
    Tab character

    /tmp/haskell1161127-18-1tvrs1g.l6xadzpvi/Codewars/Kata/Dec2FactTest.hs:13:1: Warning:
    Tab character

    /tmp/haskell1161127-18-1tvrs1g.l6xadzpvi/Codewars/Kata/Dec2FactTest.hs:14:1: Warning:
    Tab character

    /tmp/haskell1161127-18-1tvrs1g.l6xadzpvi/Codewars/Kata/Dec2FactTest.hs:47:17: Warning:
    Tab character

  • Custom User Avatar

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