English
Open in Telegram
DDeloitte | COGNIZANT | IBM | CAPGEMINI

Deloitte | COGNIZANT | IBM | CAPGEMINI

@python_java_Coding · channel · Tech · indexed since 2026-07-19
7 178subscribers
293average post reach
4.1%ER — reach to subscribers
5posts in 30 days
Deloitte | COGNIZANT | IBM | CAPGEMINI
def generateBinaryPathCode(n): def flip_tracker(): return [True] * n def bit_diff(a, b): return bin(a ^ b).count('1') def get_bit_flipped_index(a, b): return (a ^ b).bit_length() - 1 def backtrack(path, used, direction): if len(path) == 2 ** n: if bit_diff(path[-1], path[0]) == 1: return path return None last = path[-1] for i in range(n): mask = 1 << i if direction[i]: candidate = last | mask else: candidate = last & ~mask if candidate not in used: direction[i] = not direction[i] path.append(candidate) used.add(candidate) result = backtrack(path, used, direction) if result: return result path.pop() used.remove(candidate) direction[i] = not direction[i] return None return backtrack([0], {0}, flip_tracker()) #generateBinaryPath #IBM
689 ·
def findResistorColorBands(power, current): d = { 0: 'BLK', 1: 'BWN', 2: 'RED', 3: 'ONG', 4: 'YLW', 5: 'GRN', 6: 'BLU', 7: 'VLT', 8: 'GRY', 9: 'WHT' } if power <= 0 or current <= 0 or current > power: print("Invalid input") return "" res = power // current res_str = str(res) if len(res_str) < 2: print("Invalid input") return "" dig = res_str[:2] mul = len(res_str) - 2 try: b1 = d[int(dig[0])] b2 = d[int(dig[1])] b3 = d[mul] print(f"{b1} {b2} {b3}") return "" except: print("Invalid input") return "" #findResistanceColorBands✅✅✅
632 ·
D
def generateBinaryPathCode(n): t = 1 << n l = [] s = set() dp = [0] * n def isValid(prev, curr): d = prev ^ curr if bin(d).count('1') != 1: return False b= d.bit_length() - 1 tb = (curr >> b) & 1 k = 1 if dp[b] % 2 == 0 else 0 return tb == k def backtrack(): if len(l) == t: return bin(l[0] ^ l[-1]).count('1') == 1 prev = l[-1] for i in range(n): b = 1 << i c = prev ^ b if c in s: continue if not isValid(prev, c): continue l.append(c) s.add(c) dp[i] += 1 if backtrack(): return True l.pop() s.remove(c) dp[i] -= 1 return False l.append(0) s.add(0) if backtrack(): return l return [] 7/7 cases passed✅✅ contact : @MLCODER2
761 ·
Deloitte | COGNIZANT | IBM | CAPGEMINI
Photo
Photo
Photo
Photo
Photo
Photo
Photo
Photo
All capgemini slots cleared & got communication, coding mails ✅✅✅✅ 100% clearance for any exam Contact : @MLCODER2
845 ·
Photo
IBM COMMUNICATION ROUND CLEARED & GOT OFFLINE CODING MAIL✅✅ 100% CLEARANCE FOR ANY EXAM✅✅ CONTACT : @MLCODER2
696 ·

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