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.
If array1 has duplicate strings, result has too.
Look a bit like waste of memroy.
Thank you for your help, this is an important test!
I think so. The 'for l in triplets' loop should run twice.
'''add this test cause some solutions may be wrong instead'''
secret0 = "abcde"
triplets0 = [
['c', 'd', 'e'],
['a', 'b', 'c']
]
test.assert_equals(recoverSecret(triplets0), secret0)
Allows duplicates in result.
There are unnecessary copies done in the range for loop initialization.
for (auto const& a1 : array1)
would be better