摘要: 给定一个字符串数组,将字母异位词组合在一起。字母异位词指字母相同,但排列不同的字符串。 示例: 输入: ["eat", "tea", "tan", "ate", "nat", "bat"],输出:[ ["ate","eat","tea"], ["nat","tan"], ["bat"]]说明: 所有 阅读全文
posted @ 2019-07-28 22:52 YF-1994 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #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})... 阅读全文
posted @ 2019-07-28 22:39 YF-1994 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 其中P是要查找的字符串 阅读全文
posted @ 2019-07-28 17:40 YF-1994 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 算法:DP 阅读全文
posted @ 2019-07-28 00:18 YF-1994 阅读(216) 评论(0) 推荐(0) 编辑