diff --git a/rahul1060.java b/rahul1060.java new file mode 100644 index 0000000..ed48e6d --- /dev/null +++ b/rahul1060.java @@ -0,0 +1,34 @@ +import java.util.ArrayList; +import java.util.Collections; +import java.util.Scanner; + +public class TextMatRep { + public static void main(String ...z) { + Scanner sc = new Scanner(System.in); + String text = sc.nextLine(); + int n = sc.nextInt(); + ArrayList pa = new ArrayList<>(); + sc.nextLine(); + while(n-- > 0) { + String pat = sc.nextLine(); + for(int i=0; i