العربية
فتح في Telegram

منشورdef legoString(input1, input2, input3):

15 سبتمبر 2025
D
Deloitte | COGNIZANT | IBM | CAPGEMINI
def legoString(input1, input2, input3): wall = input1 n = input2 blocks = input3 if not wall or not blocks: return [-1] word_len = len(blocks[0]) if len(wall) < word_len: return [-1] from collections import Counter block_count = Counter(blocks) result = [] for i in range(len(wall) - word_len + 1): for used in range(2, n+1): length = used * word_len if i + length > len(wall): break substring = wall[i:i+length] words = [substring[j:j+word_len] for j in range(0, length, word_len)] count_words = Counter(words) if all(count_words[w] <= block_count[w] for w in count_words) and sum(count_words.values()) == used: result.append(i) return sorted(set(result)) if result else [-1] //Lego strings✅✅ VIRTUSA✅
729 ·

بجوارها في الخلاصة

DDeloitte | COGNIZANT | IBM | CAPGEMINIIBM CIC DONE & DUSTED✅✅ Contact : @MLCODER2DDeloitte | COGNIZANT | IBM | CAPGEMINIIBM CIC✅ Contact : @MLCODER2
هذه الرسالة
DDeloitte | COGNIZANT | IBM | CAPGEMINIdef maxSumOfNonAdjacentNodes(cls, input1, input2): a = input2 n = len(a) if n == 0: return 0 eff = [0]*n for i in range(n): penalty = a[i-1] if i > 0 and a[i-1]DDeloitte | COGNIZANT | IBM | CAPGEMINIfrom collections import deque def minMovesToHospital(cls, input1, input2, input3): N = input1 E = input2 K = input3 - 1 if E[K] == 0: return 0 visited = [False]
DDeloitte | COGNIZANT | IBM | CAPGEMINIDeloitte | COGNIZANT | IBM | CAPGEMINI@python_java_Coding · قناة · التقنية
7 178مشتركون451متوسط وصول المنشور
خلاصة المجتمع فتح في Telegram

خلاصة عامة مفتوحة من فهرس البحث ChatCrawler — «Google لـ Telegram العام»؛ تُحدَّث كلما زحفنا إلى المجتمع. الأوقات بتوقيت UTC.

محتوى عام فقط، وAPI Telegram الرسمي. عن المشروع · الأسئلة الشائعة · حدود الفهرس · إزالة صفحة · الدليل · بحث · كيف نحسب