Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
actually there is problem with time complexity, since in this code, you need to call count function(O(n) complexity) for every generated face
You are doing some extra work by generating all possible emojis. Then for every possible emoji, you go through the array to count that particular face. The complexity here is not really great.