Ad
  • Default User Avatar

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

  • Default User Avatar

    Huh I guess I did it a different way than you then.

  • Default User Avatar

    The hard part of this for me was finding the solution to the math problem. Once you have it the code wasn't all that complex. Very fun Kata! To anyone struggling I would say to look into the math bits. I didn't find the supplied article all that helpful IMO.

  • Default User Avatar

    When I call this function with 531441 then run the program with node inside of a terminal I get.

    [ [ 729, 2 ], [ 81, 3 ], [ 27, 4 ], [ 9, 6 ] ]
    
  • Default User Avatar

    I did this kata using JS.
    My code doesn't time out most of the times when I try it now however I got this error message which is confusing to me because they are valid pairs.

    Unhandled rejection TestError: your pair (729,2, 81,3) doesn't work for 531441 - Expected: 531441, instead got: NaN
    

    If you try both of these pairs in a calculator they come out to 531441. I think therefore there must be something wrong with the tests on the site? If someone could give me some insight here I would appreciate it.

  • Default User Avatar

    Yeah I am having same issue. I can get like 50 mill to go through but get this time out nonsence. My code looks pretty clean too.

  • Custom User Avatar

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

  • Default User Avatar

    Why does nobody comment their code on here? I feel that defeats the whole purpose of reading over the code to learn new stuff. A comment like 45 is the sum of every number 1-9 would be helpful right off the bat. What confuses me is how does this compare all the possibilities of every Sudoku grid? What do sumh and sumv represent? It looks like osums represents 1 sudoku 9x9 grig but with no comments unless you throw the code into an editor and play around with it who knows?

  • Default User Avatar

    Hmmmm I see this is different than codecademy where everyone just discussed their code. Annoying. Unless the poeple that have solved it can still see the comment.
    Either wyay where is the discussion forum for this project? Mine works but doesn't pass I need to figure out why.

  • Default User Avatar

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

  • Default User Avatar

    I get similar. When I test this thing against all the test cases running the program in terminal with node it works but mine will fail the tests and the attempt for some reason.

  • Default User Avatar

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