Find anagrams matching first letter
Given a string original_string, find all words in its anagram permutation that meet the following condition: If there are two anagram words, choose the one whose first letter is the same as `origina...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
