Capgemini OA Off-Campus | Corporate Relational Data Pivot & Cloud Logistics Inventory Cluster Grouping

Capgemini · Question · Posted Jun 2026

Problem 1 - Corporate Relational Data Pivot Problem Statement You are building an optimization microservice for an enterprise accounting data warehouse. The service receives a square matrix financialSheet of size N × N. Your task is to transpose the matrix in-place by swapping row indices with column indices. The transpose operation is defined as: financialSheet[i][j] ⇔ financialSheet[j][i] You are not allowed to allocate a secondary matrix. The transformation must be performed directly inside the original matrix using O(1) auxiliary space. ...

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

Log in Create a free account