Ad
  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    [golang]

    according to the description

    why the test caseProd2Sum(100, 100, 100, 100) failed to return [(0,20000),(5600,19200)]

    and return only (0,20000)

    you can find that (5600*5600)+(19200*19200) = ((100*100) + (100*100)) * (100*100) + (100*100))

  • Custom User Avatar

    [Golang]

    point1

    • first line package kat should be package kata

    point 2

    • there is clear instruction in the description Quote/space/Quantity/space/Price/space/Status
    • there is some test cases generated from "MY SPACE"

    so please try to remove this test case, or try to change the description.

    point 3

    • some how there is issue about using "math.Round" go pkg, the result is different from using "%.0f"
  • Custom User Avatar

    Golang: the test cases use method Gcd which is not required to implement !

  • Custom User Avatar
    • I did submit my solution successfully and didn't find it in solutions list

    • in Golang the base code: there is issue with the func name it should be "Comp"

  • Custom User Avatar

    thanks @g964 for your reply,
    I reviewed my code again and it was my fault.

  • Custom User Avatar

    I'm using GO 1.11

    I found an issues in my solution when i run locally

            main_test.go:42: expected 1.005025; got -9.223372036854775e+12 
            main_test.go:42: expected 1.001915; got -9.223372036854775e+12 
            main_test.go:42: expected 1.00099; got -9.223372036854775e+12 
            main_test.go:42: expected 1.000098; got -9.223372036854775e+12
    

    even after got the Best Practices solution the same issues still exist.