Ad
  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    Спасибо за подсказку для старичка!

  • Custom User Avatar
  • Custom User Avatar

    You should avoid using modules as much as you can.

  • Custom User Avatar

    sympy is not available on codewars, also this task can be solved without use of any external modules.

  • Custom User Avatar

    from sympy import symbols

    from sympy.solvers.diophantine import diop_DN

    I solve this kata using module sympy

    I import from the module sympy, and the test program swears and prescribed import sympy does not help

    ModuleNotFoundError: No module named 'sympy'

    Give some advice please

  • Custom User Avatar

    I also agree with the user eliseuvideira who sent this message:

    The description is very confusing for anyone that is not native speaker,
    please make it clear what I need to do to complete this kata.

    If possible, show the code how to generate an array (or a hint where you can find it!) From tuples with such values D = 3 N = 3 and so that the sum is 81 as in Kata's task ---- super_sum (3, 3), 81)
    Even in the example for Kath’s decision, it’s not clear how the list was created. If D = 2 and N = 3 the answer is 18 which would be the sum of every number in the following:

    [
    [(0,0), (0,1), (0,2)],
    [(1,0), (1,1), (1,2)],
    [(2.0), (2.1), (2.2)]
    ]

  • Custom User Avatar

    But it seemed to me that if I correctly translated the words of the assignment,
    there would be no need to rewrite anything, but just flip the arrays in place
    and change the pointers a, b = b, a

    Maybe I'm not understanding something.

  • Custom User Avatar

    For C is there some guaranee that the passed arrays are allocate big enough to hold each other?

    e.g. If strlen(s1) is 3 and strlen(s2) is 7, is it really OK to write 7 chars back to s1?

    Seems a dangeraous thing to do, and description is unclear on this point.

  • 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

  • Default User Avatar

    I having the same issue when the problem is tried with Rust, like I mentioned in my own post. Interestingly, when I tried the same test with Python, the exact same test case expects False.

  • Custom User Avatar

    Which language?, make sure you're not confusing the log of one test with the expected result of another.

  • Default User Avatar

    I guess there is a misunderstanding. The return value with those two arrays should be false, like you pointed out. But the test in the Kata expects true, which is incorrect.

  • Loading more items...