
[LeetCode] 1652. Defuse the Bomb - Python
·
알고리즘/LeetCode
문제 설명You have a bomb to defuse, and your time is running out! Your informer will provide you with a circular array code of length of n and a key k.To decrypt the code, you must replace every number. All the numbers are replaced simultaneously.If k > 0, replace the ith number with the sum of the next k numbers.If k previous k numbers.If k == 0, replace the ith number with 0.As code is circular, t..