IDFC, Recently Asked Online Assessments in 1 August, 2025 | Data Compression Algorithm

Question · Posted Apr 2026

Question 1: Data Compression Algorithm Problem Statement: Akira is working on a data compression algorithm and has devised a unique method to convert a list of numbers into a key. The process involves two phases: Concatenating Phase: Initially, create tempKeys by concatenating every pair of consecutive numbers in the list. For example, if the original list is {1, 2, 3, 4, 5}, the tempKeys would be {12, 34, 5}. (consecutive number of list indicates 1st&2nd, 3rd&4th, 5th&6th, ....) Adding Phase: ...

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

Log in Create a free account