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.
In Python. The instructions say that I should throw an exception for unclean termination. But this code: ssstsnnstsnsssttnnstsnssstnnstsnnnnnsssntnstnnn ends during a subroutine and expects me to NOT throw an exception (I'm passing the test just finishing the program inside the subroutine); meanwhile, this one: ssstntnstntssnssstnnsssnnnn also finishes during a subroutine, but expects me to throw for "empty stack"; it has a push, a pop, and another push; it also ends during the subroutine, so it is unclean but there are no issues with the stack.
What am I missing?
This shouldn't be a problem for decently sized numbers, but the formula for the lcm is better written as (a // math.gcd(a,b)) * b. This it uses smaller numbers.