This is technically best practice, not top one
I always forget the step functionality in slicing.
Check out my non lazy solution :) Not sure if I could optimize further
And why is that?
Double is used for slicing not indexing
wow!
I think this is the best practice because we replace the rest of the letters with lowerCase
could anyone explain what makes 2*(n-1) option better than n*2-2?
During C programming it's becoming a habit, couse without semicolon in every place where it should be your program won't run
Getting all of them can be very expensive for large arrays with small n.
Such a wow moment when you see a simple elegant solution and you're like dammn why did I overcomplicate the hell out of it :D
damn
The last line of kata description literally asks to modify the input not create a new one
Oooh I understand now, I did something similar but instead i subtracted 360. Thank you so much for such a detailed response!
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
This is technically best practice, not top one
I always forget the step functionality in slicing.
Check out my non lazy solution :) Not sure if I could optimize further
And why is that?
Double is used for slicing not indexing
wow!
I think this is the best practice because we replace the rest of the letters with lowerCase
could anyone explain what makes 2*(n-1) option better than n*2-2?
During C programming it's becoming a habit, couse without semicolon in every place where it should be your program won't run
Getting all of them can be very expensive for large arrays with small n.
Such a wow moment when you see a simple elegant solution and you're like dammn why did I overcomplicate the hell out of it :D
damn
The last line of kata description literally asks to modify the input not create a new one
Oooh I understand now, I did something similar but instead i subtracted 360. Thank you so much for such a detailed response!
This comment is hidden because it contains spoiler information about the solution
Loading more items...