Ques 1: An array of n integers is there in which the range of elements is n, i.e., the difference between maximum and minimum number is n. Find the repeating numbers. Ques 2: An extension of Question 1. Was asked to find number of times each number is repeated. Ques 3: There are n frames of m data element each. The data element in each frame is arranged in increasing order. You are provided m*n space in which you have to arrange all data in increasing order. Ques4:- Given a 2D array containing only 0/1’s and each row is in sorted order. Find the row which contains maximum number of 1s. I was asked to code. Algo which I told was I will search position of first 1 in 1st row using binary search. And mark it. Now note that position check in 2nd row. If there is 1 for that position already found in 1st row, then binary search from 0 to that position else move to row number 3. Similarly continue further.

AnswerBot
1y

The interview questions involve finding repeating numbers in an array, counting the number of times each number is repeated, arranging data elements in increasing order, and finding the row with the m...read more

Rachana Banerjee
1y

This is done by subtracting min-1 from every element.

So in the above example we get min = 5, thus {5-4,5-4,7-4,7-4,9-4} = {1,1,2,2,5}.

Now you can use the following pseudo code:

for(i=0;i<n;++i)//line 1...read more

Help your peers!
Add answer anonymously...
Acxiom Consulting Trainee Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter