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.
Could someone advise whether I am misinterpreting the instructions, or whether this is an incorrect test:
The test result says
81
(among other similar examples) should be included in the output.The rows with
# used in P
noted appear to be used in a path ([698, 5290, 9782, 2332, 92, 81]
) which contains a friend of the prince (2332
). This leads me to believe the ID of81
should not be included as per the formula in this section in the instructions:Is it simply that the end of the formula is not accurate (
$ p \notin F $
), or am I mistaken?This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This does not happen on all tests, some work as expected.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I know I am biased as my solution is very similar, but this is the most implicit type of solution I have seen.
This comment is hidden because it contains spoiler information about the solution
Most definitely! I do like to see if I can do a one-liner but I would rarely use something like this in my code. I am fairly new at this (coding in general), so the clever solutions really help with awareness of other methods etc.
Clever solution, but I find this is not very reader friendly.