SAP | Recently Asked Online Assessments in 03 Mar, 2026 | Maximize Decryption Value | HackerRank Coding Assessment | Complete Solutions & Tips | Sliding Window & Subarrays | Mar 3rd Campus Assessment

Question · Posted Mar 2026

Question 1: Maximize Decryption Value Problem Statement: In a file decryption system, two arrays named scores and decryptionStatus of size n are given, where: scores[i]: represents the sensitivity score of the ith file decryptionStatus[i]: decryption status of ith file, 1 if the ith file is decrypted, 0 if encrypted You are allowed to perform the following operation at most once: Choose a contiguous segment (subarray) of at most k files, and decrypt all files in that segment. Implement a function ...

The full answer & interview discussion are available to premium members.

Log in Create a free account