boolean stringIntersect(String a, String b, int len)
Given 2 strings, consider all the substrings within them of length len. Returns true if there are any such substrings which appear in both strings. Compute this in O(n) time using a HashSet. Len will be 1 or more.
java 编程 各位大神帮忙提供解题思路T^T
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-