• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
ElDynamite Avatar
Name:Unknown
Clan:Unknown
Member Since:Dec 2014
Last Seen:Nov 2019
Profiles:
    Following:0
    Followers:5
    Allies:0
    View Profile Badges
    Ad
    How many Kata did you complete in 2024?
    Discover our top moments in 2024 and how you can level up in 2025.
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (97)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • sasokpk
      • commented on "Shortest Knight Path" kata
      • 4 days ago

      try BFS (search algorithm) with it I have no issues with tests

    • Custom User Avatar
      • hydro63
      • created an issue for "Shortest Knight Path" kata
      • 3 months ago

      please fix the algorithm you are using (in C). i've had to retest it 7 times till it went correctly. i was manually checking every bad test i've gotten and every time my solution was correct

    • Custom User Avatar
      • ahmet_popaj
      • commented on "Summing Large Amounts of Numbers" kata
      • 9 months ago

      Very nice mathy kata, congratulations.

    • Custom User Avatar
      • anter69
      • created an issue for "Shortest Knight Path" kata
      • 16 months ago

      python (probably others too): one of the following should be part of the final fixed tests:

      • A1-B2
      • A8-B7
      • H1-G2
      • H8-G7

      Otherwise some incomplete solution can pass.

    • Custom User Avatar
      • ejini战神
      • resolved a suggestion on "Shortest Knight Path" kata
      • 17 months ago

      Done by OP

    • Custom User Avatar
      • ejini战神
      • resolved a suggestion on "Shortest Knight Path" kata
      • 17 months ago

      Approved

    • Custom User Avatar
      • ahmet_popaj
      • commented on "Shortest Knight Path" kata
      • 17 months ago

      Pretty challenging kata, keep it up.

    • Custom User Avatar
      • saudiGuy
      • created a suggestion for "Shortest Knight Path" kata
      • 17 months ago

      A portion of arr in random tests should be tested instead of full array to avoid solutions like this

    • Custom User Avatar
      • saudiGuy
      • created a suggestion for "Shortest Knight Path" kata
      • 17 months ago

      python new test framework is required. updated in this fork

    • Custom User Avatar
      • ejini战神
      • resolved a suggestion on "Summing Large Amounts of Numbers" kata
      • 2 years ago

      Approved

    • Custom User Avatar
      • saudiGuy
      • created a suggestion for "Summing Large Amounts of Numbers" kata
      • 2 years ago

      python new test framework is required. updated in this fork

    • Custom User Avatar
      • Quark Fox
      • commented on "Shortest Knight Path" kata
      • 2 years ago

      the more i understand python and enter the solution page,
      the more i am amazed thinking how wonderful human brains are!!!
      and become curious why people feels threatened by A.I.?!

      Nice kata!

    • Custom User Avatar
      • Chrono79
      • resolved an issue on "Shortest Knight Path" kata
      • 2 years ago

      b7 -> d6 -> c8, 2 moves. Not a kata issue.

    • Custom User Avatar
      • Andrew Abramow
      • created an issue for "Shortest Knight Path" kata
      • 2 years ago

      (C++ solution)
      Randomized_Fixed_Tests:
      b7 -> c8
      Expected: equal to 2
      Actual: 4

      How is it possible?

    • Custom User Avatar
      • benjaminzwhite
      • commented on "Shortest Knight Path" kata
      • 3 years ago

      @modernLifeRock - Hi; at first I thought you were making a silly mistake but your solution is really interesting so I ended up debugging on my IDE.

      I think your mistake is due to you introducing another argument to the function, and it seems that the tests then keep the data_structure_that_you_have_used between tests. I'm not 100% sure, because the Python tests themselves are a bit out-of-date so I don't completely understand how they are being run.

      Long story short - try this to see if it works:

      1. replace cache_sq= XYZ (where XYZ is the data structure you are using) in your function's arguments with cache_sq = None

      2. then, inside your function as the first base case, put if cache_sq is None: cache_sq = XYZ where XYZ is the (empty) data structure you are using

      I'm using XYZ to avoid having to spoiler my comment - otherwise you won't be able to see it until you have solved the kata.

    • Loading more items...
    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...