LeetCode Question · Oct 2020 · London

Facebook | Phone | Anagram Substring Search

4 upvotes 3,190 views 7 replies

Question Details

Position: E5-E6 Location: London Implement the .indexOf() function, but allow for anagrams of letters. "actor".anagrammedIndexOf("cat") = 0 // \'act\' is an anagram of \'cat\' "actor".anagrammedIndexOf("rot") = 2 // \'tor\' is an anagram of \'rot\' "…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Strings