-->
当前位置:首页 > 题库

PROGRAMMING:JMU DS longest common substring

Luz5年前 (2021-05-10)题库441
Give 2 strings, output the longest common substring of 2 strings.
###Input format:
Enter 2 strings without spaces.
###Output format:
Outputs the longest common substring of 2 strings. If there is no common substring, output "null"
###Input sample 1:
```in
abcding
sbcdiofng
```
###Output sample 1:
```out
bcdi
```
###Input sample 2:
```
understanding
fw
```
###Output sample 2:
```
NULL
```






answer:If there is no answer, please comment