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.
Brother made this spicy
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Best solution ":)",";)",":-)",";-)",";
)",":)",":D",";D",":-D",":~D",";-D",";~D"hardcode
How is this second place for best practices? Unnecessary Looping, but ok
The manual brute force initialization is overkill
умный чел!!!
tough time comp ngl
I don't think it needs O(n^2) since the smiley array size is constant. So it would be O(n) still.
Glad I'm not the only one noticing the needless O(n^2) complexity, but at least it works!
You don't even need regex to be honest, I did it by mapping on the given array and checking on each entry if a predefined array of eyes for example includes the first position of the string.
bad time complexity -- unnecessary nested loops
dont make me feel more stupid then I already felt, until 5 min ago I din't know about regex.
This is not so good because it has an O(n^2) time complexity. The solution can be achieved with O(n) time complexity.
Loading more items...