Day 23

It is day 23 today. I messed up a bit with the numbering because I accidentally forgot to publish the day 19 draft.

So, today I did a problem called Largest Mountain and I almost solved it on my own. Almost!

one interesting thing I got to learn today was that we don’t necessarily need to specify the increment/ decrement in the for loop.

For e.g.,

for(int i = 0; i<n;){

// some code

i++;

}

This works just as it would if I add i++ inside the “for” brackets

Leave a comment

Design a site like this with WordPress.com
Get started