递归+备忘录优化 import java.util.HashMap; import java.util.Objects; public class Solution { public static void main(String[] args) { System.out.println(new Solution().isMatch("abc", "*?c")); } private HashMap<Tuple, Boolean> memo = new HashMap<>(); ...