Math, asked by chiragaggarwal6757, 9 months ago

given an array consisting the length of sticks. You can pair up two sticks of same length. You need to find the maximum possible pairs of stick you can form . Eg. [1,1,2,2,2,3,4,5,5] the total possible pairs is 3 [{1,1},{2,2},{5,5}]. The remaining sticks of length [2,3,4] cannot be paired with each other. Note: a stick can only be in one pair.

Answers

Answered by zakirmollah99
0

Answer:

h]iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiikiiikii

Similar questions