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.
For anyone reading this now, its generally better to use fstrings
Was not aware that you didn't need case keywords and could just use lamda expressions in a switch. Huh, cool.
Huh, nice. First C# problem that I matched with the top solution. Was pretty weird coming from python and C and having to learn all of the built in methods again.
Here I thought I was being clever... and completely overlooked the simpler solution.
This comment is hidden because it contains spoiler information about the solution
I feel, uh... really dumb for forgetting lambda functions exist and packed everything into a tuple instead... whoops.
Why is char *alternateCase (char *string) repeated here twice?
For some reason, reading this made me realize hajime! means begin!
For those that are interested in a possible O(n) solution, what I did is a pretty rough example. Not the prettiest or optimal but should be time efficient.
Ahh, that makes sense! Completely misread this, thanks for clarifying!
In the original code challenge for "Take the Derivative", it states: "^1" should not be truncated when exponent = 2.
This version aligns the tests to take into account situations where exponent = 2.
Does this question not have a check for ("^1" should not be truncated when exponent = 2.)?
The top solutions don't seem to be factoring in an exponent of 2.
Could be people copying answers they want to dissect and understand better and then clicking "Submit" to run against the attempt test cases instead of forking them.
Why are these one liners considered better practice than splitting it into a second indented line?