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
I stored the addition to the exponent in a new variable to make it more readable. And this way the addition is only done once. It should not be grouped with the addition being done twice.
+Chrono79
I've been trying Console.WriteLine("test");
But that only works in the sample tests and only when there's no timeout.
It doesn't work when I call it in the actual code.
You're missing compound interest.
The first year you make $41.
The second year you make more interest becuase now the principal is $1041 instead of $1000.
Where you keep using the original principle of $1000 every year.
This comment is hidden because it contains spoiler information about the solution
The interest compounds. So the first year you get $41 added to your account. Year two you get interest on that profit. So then it's $1041 * interest, instead of $1000 * interest, which is what you're doing.
Agreed on both points. Good luck on improving future Kata's.
Yea, I converted the input to decimals for C# too.
Aren't they automatically sumitted when you complete successfully?
This comment is hidden because it contains spoiler information about the solution