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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
there's always one person in Codewars' solutions who does this every single time hahaha 💀💀💀
bro can hack the pentagon
This is an elegant and the most pythonic way of solving the problem however it results in a time complexity of O(n^2)/ space complexity of O(1) whereas if someone did a dictionary its only O(n)/space complexity of O(k). It may be great in terms of space however in thousands to millions of test cases in real life scenarios, it would take time but still a good
code though.