Week 9: CS 338 first week

 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? 

This week we worked on solving Coding Bat challenges. Some of them were very easy and I knew exactly how to solve these coding problems while a few were very difficult. One in particular I have not been able to finish it. For the more difficult coding problems I had to write out what I needed. I sat and worked on some pseudo code.  I also had to look up a lot of information since I it has been a few weeks that I had not written any serious Java. I had to get a refresher on a Java syntax, and library methods. I am working on this:

Return true if the given string contains an appearance of "xyz" where the xyz is not directly preceeded by a period (.). So "xxyz" counts but "x.xyz" does not.


xyzThere("abcxyz") → true
xyzThere("abc.xyz") → false
xyzThere("xyz.abc") → true

I got my code to pass all the test except one. I have worked on this for about 2 hours and I need to take a break. I think think sometimes its best to leave it alone for a little bit and come back with a refresh mind. 


Comments

Popular posts from this blog

CST438 Software Engineering: Week 8 (Final week)

CST438 Software Engineering: Week 1

CST370 Week 5