English
Open in Telegram

Postimport java.util.*;

16 September 2025
D
Deloitte | COGNIZANT | IBM | CAPGEMINI
import java.util.*; class SolutionClass { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int K = sc.nextInt(); String s = sc.next(); Set<Integer>set= new HashSet<>(); for (int i = 0; i < K; i++) set.add(sc.nextInt()); StringBuilder sb = new StringBuilder(); int i = 0; while (i < n) { int j = i + 1; while (j < n && s.charAt(j) == s.charAt(i)) j++; int len = j - i; if (!set.contains(len)) { sb.append(s, i, j); } i = j; } System.out.println(sb.length() == 0 ? "ERROR" : sb.toString()); } } //consecutive characters✅ CAPGEMINI✅
961 ·

Nearby in the feed

DDeloitte | COGNIZANT | IBM | CAPGEMINICPAGEMINI 1-PM OA HELP AVAILABLE✅✅ contact : @MLCODER2DDeloitte | COGNIZANT | IBM | CAPGEMINIclass SolutionClass { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s = sc.nextLine().trim(); int k= 0; for (int i = 0; i <
this message
DDeloitte | COGNIZANT | IBM | CAPGEMINIIBM CLEARED & GOT COMMUNICATION MAIL✅ Contact : @MLCODER2DDeloitte | COGNIZANT | IBM | CAPGEMINICAPGEMINI ON-CAMPUS EXAM✅✅ Contact : @MLCODER2
DDeloitte | COGNIZANT | IBM | CAPGEMINIDeloitte | COGNIZANT | IBM | CAPGEMINI@python_java_Coding · channel · Tech
7 178subscribers451average post reach
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count