Discuss the process of solving the Coding Bat challenges. A major part of software design is thinking about how to approach a problem with the tools we have at our disposal. What were the steps you took to solve some of these challenges?
As I read the problem, I either make a mental note or jot down functionally significant parts. Like conditionals, specific types of operations, the need for looping constructs, etc. I think about the solution and if it isn't an obvious one-liner, I do more pre-code work. Sometimes, I work better with pencil and paper than I do typing pseudocode snippets into a text editor. I write down the essential bits of the operation or function. I use that to model the solution and start the actual Java coding. Most of the time, the code worked on the first run. Other times, minor mistakes like missing punctuation (e.g. semicolon, brace, parenthesis) or absentmindedly mismatching attributes (e.g. str.length() vs arr.length) were at fault.