Monday, April 13, 2015

Monday, April 13th

Today was our first day back from school from Spring Break. We had class first thing in the morning.

We got to class, and spent about 10 minutes reviewing how the blogs were and how they are important and are included in Mr. Daly's final assessment of us for the quarter.

After that, I got to work on my final quarter's module : CodingBat. Like the two previous quarters, I will be working on CodingBat. By the end of the year, I will have finished level 2 of CodingBat, which includes Array 2 and String 2.

I have only 2 more problems to solve in Array 2, but they are very complex for me so they take me a while. For example, today, I only completed two problems.

It might also maybe be because of the fact that I just came back from holiday that I worked slowly today. I guess that after a two week break, my brain isn't back into it yet. I did feel like I needed to refresh my skills, as they were a tiny bit rusty. When compiling, I forgot many small details that I never would've forgotten before the break, such as colons, parentheses, and brackets. Small things like those often stopped me from compiling today as I forgot a bit where to put them.

But besides that, by next class I should be back into the rhythm like I always am. It's good to be back. Next class hopefully I finish Array 2 and move on to String 2.

Here's today's problem (which I did search up a little help for)

----------------------------------------------------------------------------------------------------------------------------------

Return a version of the given array where each zero value in the array is replaced by the largest odd value to the right of the zero in the array. If there is no odd value to the right of the zero, leave the zero as a zero.

zeroMax({0, 5, 0, 3}) → {5, 5, 3, 3}
zeroMax({0, 4, 0, 3}) → {3, 4, 3, 3}
zeroMax({0, 1, 0}) → {1, 1, 0}




















No comments:

Post a Comment