Daily Leetcode Challenge | NOV 18 | HINDI | Defuse the Bomb

  Рет қаралды 131

Let us code

Let us code

Күн бұрын

Пікірлер: 3
@darshankumar5546
@darshankumar5546 9 күн бұрын
if you solved this question easily, try this question: kzbin.info/www/bejne/p4G5lYdojJuSqKM
@darshankumar5546
@darshankumar5546 9 күн бұрын
ENGLISH explanation: kzbin.info/www/bejne/jmWUqGV4bt6rldUsi=Zv7LJ2kXLv3ZEKgp
@darshankumar5546
@darshankumar5546 9 күн бұрын
class Solution: def decrypt(self, code: List[int], k: int) -> List[int]: n=len(code) if(k==0): return [0]*n modifiedNums=[] kk=k if(k0): ans.append(prefixSum[i+k+k]-prefixSum[i+k]) else: if(i==0): ans.append(prefixSum[i+kk-1]) else: ans.append(prefixSum[i+kk-1]-prefixSum[i+kk-1-kk]) return ans # code= [5,7,1,4] k=3 # [7, 1, 4, 5, 7, 1, 4, 5, 7, 1] # [7, 8, 12, 17, 24, 25, 29, 34, 41, 42]
How I Mastered Data Structures and Algorithms in 8 Weeks
15:46
Aman Manazir
Рет қаралды 103 М.
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,6 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН
How to Get Ahead of 99% of Software Engineers (in 2025)
13:37
Sajjaad Khader
Рет қаралды 35 М.
Daily Leetcode Challenge | NOV  23 | HINDI | Rotating the Box
17:36
Kyiv proposes terms to Moscow / Conditions for negotiations
15:01
Why is Python 150X slower than C?
10:45
Mehul - Codedamn
Рет қаралды 21 М.
⚡️NEWS | RUBLE COLLAPSE | STRIKE ON CRIMEA | PUTIN IN KAZAKHSTAN
10:34
Ходорковский LIVE
Рет қаралды 248 М.