Google-Developer-Student-Club-CCOEW / Competitive-Coding

7 stars 51 forks source link

Question 91 #201

Closed JMukta25 closed 2 years ago

JMukta25 commented 2 years ago

There is a large pile of socks that must be paired by color. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. n=7 arr=[1,2,1,2,1,3,2] There is one pair of color 1 and one of color 2 . There are three odd socks left, one of each color. The number of pairs is 2. Complete the sockMerchant function in the editor below. Function Description int n: the number of socks in the pile int ar[n]: the colors of each sock STDIN Function


9 n = 9 10 20 20 10 10 30 50 10 20 ar = [10, 20, 20, 10, 10, 30, 50, 10, 20] Output 3

ghost commented 2 years ago

May I solve this issue @JMukta25 ?

NikitaMiraje commented 2 years ago

Nikita Miraje CCOEW E&TC I would like to work on this issue.....can you please assign me this issue???

JMukta25 commented 2 years ago

@ VodkaCranberry Write your name and college name as well as in which year you are?

aditi3004 commented 2 years ago

HEY!!! This is Aditi Sharma(SY-C) MKSSS's CCOEW Computer Engineering

I want to work on this issue Please assign this to me.

utkarshaskumbhar commented 2 years ago

Hii I am utkarsha from CCOEW sy comp I want to work on this issue