English
Open in Telegram

Postdef solve(s):

19 January 2025
D
Deloitte | COGNIZANT | IBM | CAPGEMINI
def solve(s): for i in range(1, len(s)): s1, s2 = s[:i], s[i:] if s1.count('a') == len(s1) and s2.count('b') == len(s2): return True return False n=int(input()) ans=0 for _ in range(n): s=input() if solve(s): ans+=1 print(ans) #special string #wipro
1.1K ·

Nearby in the feed

DDeloitte | COGNIZANT | IBM | CAPGEMINIIBM OFFLINE CODING + RECORDED VIDER ROUND + GD Cleared ✅✅ NOW FINAL INTERVIEW HAS TO BE CLEARED ✅✅✅ 100% CLEARANCE FOR ANY PLACEMENT EXAM & INTERVIEW ✅ Contact:DDeloitte | COGNIZANT | IBM | CAPGEMINIWipro exam done successfully ✅✅ i Contact: @MLCODER2
this message
DDeloitte | COGNIZANT | IBM | CAPGEMINIn=int(input()) arr=[int(i) for i in input().split()] p=[i for i in arr if i>0] mid=len(p)//2 if mid%2==0:print(p[mid-1]) else:print(p[mid]) #positviemidindexDDeloitte | COGNIZANT | IBM | CAPGEMINIprint(sum(int(i) for i in input().split() if int(i)<0)) #sumofnegativenumbers
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