Ad
  • Default User Avatar

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

  • Default User Avatar

    It seems it is a question rather than an issue.
    Did you read carefully this part of the description:
    *More*: e and f must result only from sums (or differences) of products between on the one hand (a, b) and on the other (c, d).

    If you read the numerous comments below you could have seen that somebody answers at a question similar to yours:
    "[5600,19200] doesn't fit the bill if a=b=c=d=100."

    I know that the description is not completely clear but it cannot be so unless I give the solution.
    Sorry for that!
    Note: this result appears in all translations, not only in Go.

  • Default User Avatar
    • typo (one more!-) corrected
    • I don't see any problem with that but changed to Quote/white-space/Quantity/white-space/Price/white-space/Status
    • I am waiting for a suggestion from you

    PS: how can it be possible that your solution is exactly the same as mine?

  • Default User Avatar

    Typo corrected.Thanks.

  • Default User Avatar

    I did submit my solution successfully and didn't find it in solutions list -> CW problem, should appear later

    in Golang the base code: there is issue with the func name it should be "Comp": typo fixed, thanks

  • Default User Avatar

    For which values of n do you got that? If you get -9.223372036854775e+12 for a given n, your code is clearly false...
    I tried a few solutions (including Best Pratices ones) and saw no problem. You can see at the top of the page that 46 (out of a total of 1973) guys passed the Go kata. If there had been problems don't you think that somebody would have already seen them?
    ...............
    Since you seem new to CW here are some general guidelines about posts:

    Issue: problem in the kata itself (description, wrong tests, wrong internal solution...)

    Suggestions: well, that part is clear

    Question anything else that is related to you having a problem solving a kata

    For information, when you post issues:

    provide ALL the useful information:

    • language
    • input
    • outputs (actual expected)
    • error message

    check, DOUBLE check that this IS an issue, meaning that the problem is in the kata itself and not in your code. If it's in your code, post rather a question
    If you pass this step, you still have to prove/explain what the issue is (and if you can provide fixes, it's even better)