Week 9 - Brushing Up With CodingBat
Java Practice This entry covers Week 01 of CST 338 Software Design. This week had us solve functions in Java on CodingBat to brush up on our coding skills. One notable consideration when approaching these problems is understanding what they’re asking to begin with. My take was to take a step back and look at the whole picture. First, before reading the instructions, I glance down at the function to make a mental note of the return types and parameters to see what types I’m working with. Then I look back up at the instructions to see what the specifications are. The section below the instructions gives great examples of how the code should work. This section is quite helpful when the instructions aren’t easily explained with words. The next step I take is determining the logic required to turn the inputs into the desired outputs. I generally divide the problem down into more manageable steps here and I work on one solution at a time. This is the trial-and-error part of the w...