给个猜词小游戏的app,显示一个合法string的anagram,要求用户一分钟内给答案,
返回对错,time out之后返回所有的正确答案。dictionary作为list,已知。
(预处理dictionary,用hashtable存,key是string排序后的结果,每个slot用bst存
,时间为logk)eg:给atme,正确答案包括team, mate, meat, tame
转载于:https://www.cnblogs.com/leetcode/p/3271806.html
给个猜词小游戏的app,显示一个合法string的anagram,要求用户一分钟内给答案,
返回对错,time out之后返回所有的正确答案。dictionary作为list,已知。
(预处理dictionary,用hashtable存,key是string排序后的结果,每个slot用bst存
,时间为logk)eg:给atme,正确答案包括team, mate, meat, tame
转载于:https://www.cnblogs.com/leetcode/p/3271806.html