We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Can someone please explain to me what exactly they want you to do with generic spells? It says "subsequence of letters" which made me think they wanted the longest substring, but the example they give is not a substring of either string. So I assumed instead they wanted just the number of characters in string1 that are also in string2, but that's not passing the tests. So I revealed the test data it was using, and the journal entry contained every letter anyway, so I really don't understand what I'm being asked to do here.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Magic Spells
You are viewing a single comment's thread. Return to all comments →
Can someone please explain to me what exactly they want you to do with generic spells? It says "subsequence of letters" which made me think they wanted the longest substring, but the example they give is not a substring of either string. So I assumed instead they wanted just the number of characters in string1 that are also in string2, but that's not passing the tests. So I revealed the test data it was using, and the journal entry contained every letter anyway, so I really don't understand what I'm being asked to do here.