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.
You must import the directives -->
using System
to be able to do so.Anyhow, OP solved it, closing.
The problem is that on your very first line you're trying to assign an integer "n" to be the length of a string. Also, you have "n" as just an integer right now, not an array of integers.
So, you need to figure out how to convert a string into an array of integers.
Here is one algorithm that could accomplish that:
It looks like you have a handle on how to do steps 3 and 4, but you're missing steps 1 and 2.