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.
I was having the same problem, it turned out to be when the vector is empty and we subtract 1 from its size, the comparison in the for loop doesn't work as we expect because v.size() returns an unsigned, and the result of 0 - 1 ends up beign a big positive number instead of -1
Oh man, I love c++ hahah
So I guess I'm missing how to create the sensors database for the agent, and how to query it properly.
.
Javascript translation
C# Translation
it's a 4x4 grid, neither BFS nor DFS should time out, but naive searching will :)
Hey guys, can someone give me a hint on this one? I've been trying it for quite some time.
I'm using a BFS, but at this point I'm not quite sure if this is a good approach. A DFS would be any better?
Edit: scrolling down I saw my old post, from 6 months ago, hahah wow
.
Lol, ty
I completely missed the point, I know that he can reach the gold, but the agent itself doen't know the entire layout of the map.
in both cases you start feeling the wind of the pits, but you cannot know if it's south or east.
-P--
-W--
--G-
----
-P--
----
----
-GW-
Could someone please explain to me why these should be false? Can't the agent get to the gold safely?
Can you elaborate more on this, please? I'm getting the same error
Solved, idk why but the problem was that I was using vector reserve.
This doesn't make any sense, are the matrices being converted to a string when checking the test cases?
They should compare equal, given that all numbers match, independently of these weird spaces.
C++
Loading more items...