Modify an Array: An extra verbose explanation

I’m thinking of posting my solution notes for challenges, they are extra verbose even for simple solutions and might be overkill but making them helps me really understand the concepts in the exercise, if anyone is interested I will post them here as I work through challenges. I am also open to any critique to my logic in the notes.

Thanks,
Yash

Getting used to thinking about ‘given’ information and outcomes is a great way to approach challenges, especially as they get more complex!

If you get stuck, providing this information is huge in helping people help you. I’d say keep doing this!

I would be careful about taking too much information as ‘given’ though. For instance, in this case knowing the number of keys really doesn’t change the problem in any way. Sometimes you can accidentally assume to much and make code that is not flexible enough for the given input.

The more you do this, the more you’ll be able to reduce how much you assume as ‘given’ and the more you’ll get used to language and wording that documentation uses!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.