CST338 - Learning Journal - 1
CST338 - Software Design
Codingbat:
- A review for Java:
- Arrays
- Strings
- Maps
- Functionality
- Logic
Steps taken to solve problems:
- review Java syntax
- observe the expected output for each code
- identify key logic used such as string manipulation, list transformation, basic operations, storing data types, insertion/deletion in arrays, splitting, formatting, length and character access and more.
- wrote code and saw what test cases passed and did not pass
- based on that reviewed the code and rewrote parts that were needed in order for the test cases to pass.
Plan it out or Throw Code at it:
- Planned code out by writing out my thought process and then writing the code. For some of them I did throw code at it and then went through it based on how the test cases came back.
What worked:
- Planning the code and taking some time prior to attempting code reviewing the syntax for Java.
- Reviewing the basics for arrays and maps(needed a refresher on this)
What did not work:
- I had trouble with the map problems since I needed a refresher. Once I reviewed the basis and did a few of them I did catch on the basic key elements for map problems
How many tries did it take:
- For the more complex problems especially in string2, it did take at least 3-5 tries depending on how the test cases came back. There were a couple I struggled with that took me more than 5 tries and I did have to use some hints. There were also a few that I was able to get right away.
Comments
Post a Comment