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.
So I've solved this Kata all except for the last character in the string. My solution compares each character in the string to each one after it (to avoid comparing it to itself). However with the last one, there is nothing after it to compare to so it thinks that it's always a unique character. What are some ideas that could solve this problem?
I completed it, apparently I had to put in using System. I thought it would implement that automatically, as every c# program uses that.
This comment is hidden because it contains spoiler information about the solution
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.