ThoughtSpot OA | 6 March 2024 | File Protection (Minimum Changes) | Complete Solution
thoughtspot · Question · Posted Apr 2026
Question 1 There are n files stored in a system, where the size of the i-th file is fileSize[i]. To protect the files from getting hacked, the minimum size of the i-th file should be minSize[i]. All files must be protected. To do so, the contents of some files can be transferred to another such that the total number of bytes remain the same. Find the minimum number of files whose size must be changed such that all files become ...
The full answer & interview discussion are available to premium members.
Log in Create a free account