1.2-OR63 删除公共字符

删除公共字符_牛客题霸_牛客网 (nowcoder.com)


//题目描述
//str1-They are students.
//str-aeiou
//sout-Thy r stdnts.
//-
//map
//get,put方法
//-
//string->char-charAt()
import java.util.*;
public class Main {
    public static void main(String[] args){
        //处理输入
        Scanner sc=new Scanner(System.in);
        String str1=sc.nextLine();
        String str2=sc.nextLine();
        
        //map
        HashMap map=new HashMap<>();
        //先遍历str2
        for(int i=0;i

你可能感兴趣的:(leetcode)