阅读背景:

如何从给定的字符串列表自动生成regex ?

来源:互联网 

You are given 2 lists of Strings - A and B. Find the shortest regex that matches all strings in A and none in B. Note that this regex can match/not-match other strings that are not in A and not in B. For simplicity, we can assume the that our alphabet size is just 2 characters - 0 and 1. Also only these operators are allowed:You are given 2 lists of Strings - A and B. Fin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: