摘要:
给定一个字符串数组,将字母异位词组合在一起。字母异位词指字母相同,但排列不同的字符串。 示例: 输入: ["eat", "tea", "tan", "ate", "nat", "bat"],输出:[ ["ate","eat","tea"], ["nat","tan"], ["bat"]]说明: 所有 阅读全文
摘要:
#include #include #include #include using namespace std; typedef pair PII; typedef long long LL; int main(void){ int n; cin>>n; setS; S.insert({INT_MAX,0}); S.insert({INT_MIN,0})... 阅读全文
摘要:
其中P是要查找的字符串 阅读全文
摘要:
算法:DP 阅读全文