employer cover photo
employer logo
employer logo

Trilogy Innovations

Is this your company?

Trilogy Innovations Interview Question

Q. what was OA round Like?

Interview Answer

Anonymous

May 27, 2024

One of them was Given an array of length n, and your task is to divide it into k subarrays. The cost of a subarray (i….j) is the (a[i] + a[i + 1]….+a[j])^2. Find the minimum Total Cost. The second was based on segment trees. The third was based on a Disjoint set Union (which was not easy to implement). Last one I didn’t remember.