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.
i*i is shorter and (maybe) a little faster with many numbers
a
andb
already are of the typebyte
, so casting them will not do anything. However, the addition operator+
returns anint
(as bytes are not necessarily used as numbers, soa + b
implicitly does is(int) a + (int) b
), hence we do need to cast the result.This comment is hidden because it contains spoiler information about the solution
Is there much difference between using
Math.Pow()
andi**i
?You're simply printing a string and returning a number, not what you should do, read the instructions again.
Nice one - glad I could help!
This comment is hidden because it contains spoiler information about the solution
Thank you so much! I found it were that the data was outputting to much data so when you said to check my loop i knew it couldnt have been that since its just iterating n times then i relised it was the Console.WriteLines's i had!
Thank you for your service.
This error happens when the code is outputting too much data to the log window. So this could be caused by using Console.WriteLine a lot or by writing to the log window inside an (infinite) loop. Have a careful look to make sure the loop is being terminated.
If you aren't sure, feel free to post the code and check the "Mark as having spoiler content" checkbox.
I wanna believe im learning i really do but it seems im getting a
Max Buffer Size Reached (1.5 MiB)
error?Using C# btw
Does this seem a bit much?
not an issue.
This comment is hidden because it contains spoiler information about the solution
the instructions should be spaced out more. they were almost a entire sentence making it a little difficult understanding the recommended order they should go in.
This comment is hidden because it contains spoiler information about the solution