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.
Wow I thought my solution was long.
When someone says "Could someone explain?" you already know this is not a best practice facepalm
I'm 100 percent with you, 8 kyu kata should be fundamentals and written cleanly. Honestly going to spend more time figuring out what the heck they are asking for that anything else.
fr
Ouch
No, in input:
j
(arr[j]
) "- the number of a friend who was given a gift by friend number i", but in output:i
(arr[i]
) "- the number of a friend who was given a gift by friend number i"Approved ;)
I believe there is a typo. The description of the input array should be: "- the number of a friend who was given a gift by friend number i". At the moment it duplicates the description of the output array.
C++ translation
This kata description makes me vomit
Replaced with "1-based indexing" as that seems to be the correct term compared to "1-indexing". If somebody needs further explanations what that means, they really should learn it by themselves.
The examples shows pseudocode :
a[1] == 2
etc., where in reality, this should bea[0] == 2
etc. If you clarify your "1-indexing" formulation that would help.But all 3 languages in the kata index from
0
... what's special about C here?Wtf even is this?
That pseudocode is pure DRIP 👌😤