charan
BAN USER- 0of 0 votes
AnswersYou have a two dimensional array of size m*n. The
- charan in United States
elements in the rows are sorted and every row has
unique elements means( in a row no two elements are same) but
the elements can repeat across the rows.
For example:
you have following 2-D array:
{
2 5 7 9 14 16
3 6 8 10 15 21
4 7 9 15 22 35
7 8 9 22 40 58
}
You are supposed to write an efficient function which
will take upper 2-D array as input and will return a
one-dimensional array with following properties:
a) the 1-D array must contain all the elements of above
2-D array.
b) the 1-D array should not have any repeated elements.
c) all the elements should be in sorted order.
For example:
for the above 2-D array, the output should be:
A [ ] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 14, 15, 16, 21, 22, 35,
40, 58 }
Function Prototype should be :
int [ ] MergeAndSort( int[ ][ ] inputArray )| Report Duplicate | Flag | PURGE
Amazon - 0of 0 votes
Answersyou r given an array and you have to find out the top 3 repeated numbers.
- charan in India
for e.g. RAM[] ={20,8,3,7,8,9,20,6,4,6,20,8,20}
so the output will be : 20 is repeated 4 times , 8 is repeated 3 times, 6 is repeated 2 times .
complexity must be best| Report Duplicate | Flag | PURGE
Amazon - 0of 0 votes
AnswersWhy C language does not support column major array?
- charan in India| Report Duplicate | Flag | PURGE
Amazon
- 0 Answers very good question of C language
why C language does not support column major array ??
- charan December 05, 2012| Flag | PURGE
Repmarthahiggs71, Intern at Achieve Internet
Hi, I am Martha from Toledo, OH. Working with Top NYC consulting engineers by helping them design controls projects. Have ...
RepNatalieLutz, Applications Developer at Absolute Softech Ltd
Pitch trending story topics and continually look for ways to push breaking and/or viral stories forward with new angles ...
Repleighpjoyce, job tessio at CapitalIQ
Welcome to my world.I am a safety-conscious HVAC Engineer with experience with mechanical engineering Brampton HVAC design for commercial ...