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.
Great point! I think that would be quite a bit better in almost every case. The only issue I can think of is that str1 could be significantly longer and it would then be a bit memory intensive.
Why not do it reverse, requirements be str1 and if for second loop we receive null we will return false?
We will not need to go through the entire (second)loop if a character is missing
This type of edge case is not a concern for this basic kata.
This comment is hidden because it contains spoiler information about the solution
seeing your solution makes me want to refactor mine(which is pretty inefficent. I didn't have an idea nor the time to write a better one), but I want to precieve my development. and thanks for the magnifecent idea, never thought of using a Map, am really lacking in terms of algorithmic thinking.
i agree with you
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
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
Loading more items...