algoLearner
BAN USER
Questions (3)
Comments (2)
Reputation -5
- -5of 5 votes
AnswersFill the arrray with elements from 0 to 9.
- algoLearner in India
based on thier frequency.
a[1]=3 means, 1 is repeated for 3 times(1 must present 3 times in that array)
a[2]=4 means 2 is repeated for 4 times.(2 must present twice in that array)| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer Arrays - 0of 0 votes
AnswersAmezon_interview_3rd round:
- algoLearner in United States
Fill the arrray with elements from 0 to 9.
based on thier frequency.
a[1]=3 means, 1 is repeated for 3 times(1 must present 3 times in that array)
a[2]=4 means 2 is repeated for 4 times.(2 must present twice in that array)| Report Duplicate | Flag | PURGE
Arrays
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
1
of 1 vote
Hi,
Please clarify me,
here sum is the cost, and sum remains same in any order of addition, how can you get the minimum cost.
can you post some example
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
missed to add array size as 10, and you must fill this array by using 0 - 9.
- algoLearner March 23, 2017case 2:
must use maximum numbers to fill the array.
Note:
a[i]=n means, i must present n-times in that array.