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 explanation. No need to worry about mutation of the original input as strings are primitive data types, i.e. passed by value. We are passing the value of the original string as a parameter and it is being stored in the local variable 's'. Thereafter, we are manipulating the local variable 's' so the original string remains the same.
Good job, encore une fois petite amélioration possible :
tu pourrais simplement comparer s2[i:i+2] in s1 directement dans ton premier for
qui te permettrait d'enlever le 2e for et la liste de substring ss.
This comment is hidden because it contains spoiler information about the solution
bruh