我有一个随机字符的2D数组.我想匹配这些字符的特定模式:例如:ABA,BACKA,上/下/左/右.找到这种模式的最佳算法是什么?
puzzle algorithm
algorithm ×1
puzzle ×1