map
Data Structures & Algorithms · 3 notes
- Group Anagramshistorical
Given an array of strings, group the anagrams together. Anagrams contain the same letters but in a different order.
- Find All Anagrams in a Stringhistorical
Given a string s and a non-empty string p, find all substrings in s that are anagrams of p and return their starting indexes.
- Longest Common Prefixhistorical
Write a function to find the longest common prefix among an array of strings.