Подготовка к JS собеседованию #1 - Задача Malware Analysis

Аватар автора
devnomaly
Решение задачи Malware Analysis Условие Your company is analyzing malware which targets numerical record files The malware uses a sliding window over the array of numbers in a file, and tries to match the pattern: T, -, -, X, -, -, -, T The malware has the following values: * If any of the &positions in the pattern are bigger or equal to &the malware replaces &with 0. * If the &position in the pattern is near the left or right border and is missing a &position neighbor, only the other side is considered. * The malware finds all the positions first and only then sets them to 0.

0/0


0/0

0/0

0/0