Ad
  • Custom User Avatar

    This one rattled my mind for days! I wanted to solve with no consultations on the problem. This led me to a brute force approach which, predictably, failed for lack of time and resources. Then I looked a bit for hints and came across Warnsdorrf's rule. Things turned around quickly! So, my only suggestion on this kata would be to hint that this requires a strong grasp on solving with algorithms and heuristics, which we might need to research.

  • Custom User Avatar

    Fun kata, thank you. I was able to solve this as a particular case of a more general problem.

    A couple of suggestions to improve the description:

    • explain that the coordinates range from 0 to n - 1 (typically, in chess, rows and columns range from 1 to n);
    • at least for Python, the expected result is a list of tuples, not a "2D array".
  • Default User Avatar

    Alhamdulillah, solved it again, this time with no obscured fail!! found the problem and modified it! and crossed all obstacle you set!!

  • Default User Avatar
  • Custom User Avatar

    you'll find stuff about knight's tour all over the place on the internet. For more precise stuff, you can search for the name I used in my python solution: ..._DP

  • Default User Avatar

    Ya, i just checked, and on 6X6 all the other 35 points make a tour with my piece of code but not (2, 2), so i guess i am extremely lucky!! anyway i just noticed the way i followed, actually just ment to make a successful tour not necessary from any point of start, so as this kata is actually over for me, can you please refer me to any material (video or journal) by learning which i can make someting that will solve any knight's tour, i mean from any board or any point, or atleast code better than my code!!(i am not yet very good at reading others code). Thanks for solving the issue, and also for noticing and checking my code.

  • Custom User Avatar
  • Custom User Avatar

    I updated the tests in python. Your solution atually times out in some situations x6x at 2,2, apparently)

    Sample tests are now also in the full test suite, and I added some random tests.

  • Custom User Avatar

    works fine on my side

  • Default User Avatar

    is there anything wrong with sample tests in Python?
    sample tests timesout my solution for the kata,
    though i've already passed the kata,would you please take a look?
    i mean i was confident so i tried the attempt button anyway,
    but imagine someone stuck there and unnecessarily changing their code!

  • Default User Avatar

    this is hard

  • Custom User Avatar

    The example tests for JS are broken, but it is funny because the author actually wrote that as a comment in there XDD

  • Custom User Avatar

    A challenge version someone? :)

  • Custom User Avatar
  • Custom User Avatar

    Python 3.8 should be enabled.

  • Loading more items...