Trilogy Innovations interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Trilogy Innovations
upvote
share-icon
1 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Journey
This was a college placement drive arranged.I attended it and gave my best. I only got into the first round. I must have practiced more. This was a good opportunity to understand where i stood.
Application story
This was a placement drive to which I applied. This drive was for my 7th sem intern. we were prepared by college by it.
Why selected/rejected for the role?
I was not selected for this role , maybe should have tried harder. I only went till 1st round didn't go further.
Preparation
Duration: 3 months
Topics: Data structures , Algorithm , OOPS , pointers , Algorithms
Tip
Tip

Tip 1 : practice competitive programming regularly
Tip 2 : look at interview experience
Tip 3 : talk to seniors who work there

Application process
Where: Campus
Eligibility: no
Resume Tip
Resume tip

Tip 1 : get it reviewed by professional
Tip 2 : mention only what you know

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date31 May 2022
Coding problem2

1. Split the given array into K sub-arrays

Hard
15m average time
85% success
0/120
Asked in companies
AmazonTekion CorpTrilogy Innovations

You’re given an array 'arr' of size 'n' and an integer 'k'.

Your task is to split 'arr' into 'k' sub-arrays such that the maximum sum achieved from the 'k' subarrays formed must be the minimum possible.

A subarray is a contiguous part of the array.

Return the minimum possible value of the maximum sum obtained after splitting the array into 'k' partitions.


Example:
Input: ‘arr’ = [1, 1, 2] and ‘k’ = 2 

Output: 2

Explanation: If we want to make two subarrays, there are two possibilities: [[1], [1, 2]] and [[1, 1], [2]]. We can see that the maximum sum of any subarray is minimized in the second case. Hence, the answer is 2, which is the maximum sum of any subarray in [[1, 1], [2]].


Problem approach

The first group consists of the first K elements of the array, the second group consists of the next K element of the Array, and so on. Each element can be a part of exactly one group.
For the last group, if the array does not have K elements remaining, use 0 to complete the group.

Try solving now

2. Disjoint Intervals

Moderate
30m average time
70% success
0/80
Asked in companies
MeeshoAmazonSprinklr

Given a 2D array of size Nx2 which contains a set of ‘N’ intervals. Each interval contains a starting point and an ending point. You need to find the size of the maximal set of mutually disjoint intervals.

Two sets [a,b] and [c,d] are disjoint intervals if there is no common point between these two intervals.

For example: [5,7] and [8,10] are disjoint intervals but the intervals [5,7] and [7,10] is not a disjoint interval as they have a common point, 7 in them.

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
Web Developer
2 rounds | 4 problems
Interviewed by Trilogy Innovations
911 views
0 comments
0 upvotes
SDE - Intern
4 rounds | 5 problems
Interviewed by Trilogy Innovations
3991 views
0 comments
0 upvotes
SDE - Intern
5 rounds | 3 problems
Interviewed by Trilogy Innovations
4965 views
0 comments
0 upvotes
SDE - 1
6 rounds | 10 problems
Interviewed by Trilogy Innovations
1181 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes