Panda Guru LogoPanda
Guru

SOTI | Coding Round | 3 Questions - 3 hrs

Round 1

Questions:

Problem 1: Amplifier Array (Easy)

You are given an array of integers 'A' of length 'M', representing amplifiers. Each amplifier 'A[i]' amplifies the input signal such that: Output signal = A[i] * input signal Amplifiers can only be connected to adjacent amplifiers in 'A'. The task is to select the maximum number of amplifiers to amplify a signal of strength 1 to exactly 'S'. Return the number of amplifiers used, or -1 if it is not possible.

Example:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Problem 2: Scrambled Binary Message (Medium)

You are given a binary message 'S' of length 'N', which is an encoded version of a lowercase alphabetic string. You also have an array 'A' of 'M' binary strings, each representing a 5-bit binary string of a lowercase alphabet. The message 'S' arrived in a scrambled manner. The task is to find the lexicographically smallest possible lowercase alphabetic string that the message could represent.

Example:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Problem 3: Rectangle Stacking Problem (Hard)

Given a list of rectangles with width and height, the task was to stack these rectangles to maximize the height of the stacked rectangles. Each rectangle must have a width and height less than or equal to the rectangle below it.

Example:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.