leetcode 49: anagrams

leetcode-anagramsios // leetcode 49: 將由相同字母組成的字符串進行分類 // 解題思路:將字符串進行排序,排序完同樣的字符串歸爲一類 // 使用map來對字符串進行歸類,最後轉換爲vector二維數組 // 本題不要求最後輸出的順序 #include <iostream> #include <vector> #include <string> #include
相關文章
相關標籤/搜索