- 博客(1)
- 资源 (20)
- 收藏
- 关注
原创 牛客网最长公共子串
package com.example.interview; import java.util.Scanner; /** 给定两个字符串str1和str2,输出两个字符串的最长公共子串,如果最长公共子串为空,输出-1。 */ public class SubString { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()) { String str1 = sc.n
2021-08-21 23:40:00 99
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人