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.
I tried this out yesterday and can't seem to grok the criteria for:
"If it is a generic spell, find a subsequence of letters that are contained in both the spell name and your spell journal. Among all such subsequences, find and print the length of the longest one on a new line."
They're definitely not continued subsequences, and I thought it would be shared letters in order but that's not right, either.
Can anyone specify the constraint in a clear manner?
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 →
I tried this out yesterday and can't seem to grok the criteria for:
"If it is a generic spell, find a subsequence of letters that are contained in both the spell name and your spell journal. Among all such subsequences, find and print the length of the longest one on a new line."
They're definitely not continued subsequences, and I thought it would be shared letters in order but that's not right, either.
Can anyone specify the constraint in a clear manner?