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 tried to handle the "\n" part of the samples by replacing it with "\n". When I print it in VSCode, the correct result is shown, but there's an error here that the result should not be "\n" but "\n". But then it acts as the newline character and doesn't work. What can be done regarding this?
You have to remove all the elements from
a
which are present inb
.So if a=[1,2,2] and b=[2]. Then we need to remove each 2 from
a
. So answer is [1] after removing all 2 froma
.But if we're removing the duplicate values, and making everything in the test string lowercase, shouldn't it return true only if both are equal? I'm new to this so I have a long way to go.
This comment is hidden because it contains spoiler information about the solution