【Leetcode】524. Longest Word in Dictionary through Deleting

题目地址: https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/html 给定一个字符串 s s s,再给定一个字符串组成的数组 A A A,求全部 A A A中是 s s s的子序列的字符串中最长的那个。若答案不惟一,则返回字典序最小的。若答案不存在,则返回空串。java 思路是用堆,遍历数组,而后先
相关文章
相关标签/搜索