Computer Science, asked by silpareddykesireddy, 2 months ago

2

Mary has N candies. The i-th candy is of a type represented by an
integer T[i]).
3
Mary's parents told her to share the candies with her brother. She
must give him exactly half the candies. Fortunately, the number of
candies N is even.
After giving away half the candies, Mary will eat the remaining
ones. She likes variety, so she wants to have candies of various
types. Can you find the maximum number of different types of
candy that Mary can eat?
ll
Write a function:
class Solution { public int solution(int[] T); }
that, given an array T of N integers, representing all the types of
candies returns the maximum possible number of different types​

Answers

Answered by Darkevilyt
0

Answer:

op

Explanation:

Percentage of zinc present in the ore = 8%

Amount of zinc = 2.8 kg

Let the amount of ore be = x

Amount of ore required =

8% of x = 2.8 kg

⇒ 8/100 × x = 2.8

⇒ x = 28 × 100/8 × 10 = 35

∴ 35 kg of ore will be required to get 2.8 kg of zinc.

Answered by Anonymous
0

Answer:

hya-gcgc-yiq hya-gcgc-yiq

Similar questions