
One simple approach would be to find the frequency of each element(i.e. 0s, 1s and 2s) and create an array with this information. A better approach would be
Developer Intern at DeepThought
A software developer from Delhi, India. I completed my Btech in Computer Science in June of this year and I am open for any web development jobs. I am a simple guy who likes growing plants, taking longs walks and sometimes playing pokemon go :)
Markdown supported · ⌘↵ to post
No responses yet.