+ 2
C program to find number of distinct elements in the array.I enclose the code tried by me.
10 ответов
+ 3
https://code.sololearn.com/cEZiNSKuePxW/?ref=app
Thank you *Asterisk *
+ 2
Ruthvik reddy Punnam something like this, you just have to print the size of the array and that solve your problem I think
https://code.sololearn.com/cfQL7xwd5Va3/?ref=app
+ 1
What are you trying to achieve?
I can't understand your question
+ 1
Number of distinct elements
Subtracting number of same elements from total number of elements
+ 1
No
For example
Input= 3 3 3 5 6
Output =3
Number of distinct elments (3 5 6)
We should not consider duplicate elements
*Asterisk*
0
show your code first, and i hope this is not an assignment
0
do you mean subtracting each element from the total numbers of elements Ruthvik reddy Punnam
0
OK
0
problem solved right Ruthvik reddy Punnam
0
you're welcome Ruthvik reddy Punnam