0
how to find separate value length in array?
a=[1,1,1,2,2,2,2] in this array there are three(1) and 4(2) but now the question is what is the keyword or how to find the length of separate value in array?
1 Answer
+ 3
Naveen K
One solution is You can use map to store counted value with each key.
https://code.sololearn.com/clJq45pF8okj/?ref=app