Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
You asked what's BFS/DFS. You don't want the explanation.
You didn't ask for "input" (neither specify what you mean by this). You want to receive some "input".
What?
I was actually hoping for someone to provide original input and enrich the conversation
DFS, BFS
I don't mean to hijack the thread but what are DFS and BFS, some kind of standard pathfinding algorithms?
This comment is hidden because it contains spoiler information about the solution
done
damn me... I'll fix it, sorry.
(actually, first and last tile being a wall shouldn't change anything but... well, it is in the description, yes)
In Java during the random test cases I run in to cases where the start position contains a wall, like this:
W.\n
..
I assume this is a bug since the tasks states that start and end positions are empty. I see there was an issue with where the end position contained a wall. Probably similar problem.
should be good, now.
No, you're not supposed to do that.
Maybe I messed up something. Let me take a look.
OK, I forgot to constrain the last cell. Will update the kata.
Programming language: Java
Challenge: Pathfinder #1
Hello.
I've stumbled over the following issue:
My code works fine for the fixedTests and the moreTests...
But when it comes to the randomTests, I get mazes like this one:
Why should that return ?
Could anyone explain that to me? The last tile is obviously a wall, which can't be entered.
Is that just an error in the java version? (java has only been solved once and maybe by 'accident'...)
Thanks in advance,
nudelchef
I did a recursive backtracking solution in python. I had to set the maximum recursion limit to avoid hitting that for the larger test cases. Is there an major optimization I am missing. If there isn't, can we have the test up the recursion limit, which can confuse ppl thinking there solution is invalid.
This comment is hidden because it contains spoiler information about the solution
Loading more items...