Coding interview questions set 8
Let's begin with set 8,
16)If given a max weight as input find out max allocation from a given array of jewelry weights.
Here we get quotient and remainder and put quotient and array element in finalArray if quotient>0.
If the remainder is 0 then that is a break condition else we reduce maxWeight by quotient * effectiveWeight.
I hope you like this article.
You may also like these articles: