Português
Abrir no Telegram

Postfrom collections import defaultdict

7 de agosto de 2024
M
Machine Learning coder
from collections import defaultdict def getMaxRacers(speed, k):     ans = 0     D = defaultdict(list)     for i, e in enumerate(speed):         D[e].append(i)     for arr in D.values():         l = 0         for r in range(len(arr)):             while r > l and arr[r] - arr[l] - (r - l) > k:                 l += 1             ans = max(ans, r - l + 1)         return ans Max Racers ✅ #GamesKraft
1 · 1.4K ·

Por perto no feed

MMachine Learning coderdef solve(N, workload): tot = 0 max_tot = 0 for i in workload: if i > 6: tot += 1 else: tot = 0 if tot > max_tot: max_tot = totMMachine Learning coderdef answer(arr, i, dp): if i >= len(arr): return 0 if dp[i] != -1: return dp[i] include = arr[i] | answer(arr, i + 1, dp) exclude = answer(arr, i + 1, dp)
esta mensagem
MMachine Learning coderimport heapq def get_greatest_elements(arr, k): n = len(arr) result = [] min_heap = [] for i in range(n): heapq.heappush(min_heap, arr[i]) if len(min_heap) > k:MMachine Learning coderdef collect_max(mat): n = len(mat) if n == 0: return 0 dp = [[[ -1 for _ in range(2)] for _ in range(n)] for _ in range(n)] dp[0][0][1] = 1 if mat[0][0] == 1 el
DDeloitte | COGNIZANT | IBM | CAPGEMINIDeloitte | COGNIZANT | IBM | CAPGEMINI@python_java_Coding · canal · Tecnologia
7 178inscritos406alcance médio dos posts
Feed da comunidade Abrir no Telegram

Um feed público aberto do índice de busca ChatCrawler — “o Google do Telegram público”; atualizado à medida que a comunidade é rastreada. Horários em UTC.

Somente conteúdo público, API oficial do Telegram. Sobre · Perguntas frequentes · Limites do índice · Remover uma página · Catálogo · Busca · Como calculamos