Chapter 4: Applied problem solving

Practical problem solving

face Josiah Wang

Now that we have all our three basic building blocks covered in depth, we have enough tools to solve real challenging programming problems!

It is time to combine everything you have learnt so far, and apply your knowledge to tackle some interesting programming challenges.

Remember, do not jump straight into coding, but understand the problem and devise a solution/algorithm on paper first!

Bla bla bla bla stop nagging

Also remember to test out your program to make sure it works for different use cases.

And try to incrementally “test/debug while you code”. Do not wait till you finish coding to debug! Make sure that your code works at every stage!

As in previous lessons, the link to the sample solutions for these challenges can be found on the main Guided Learning Materials page. Remember that there are many ways to solve the same problem, so these solutions are just there for your reference. You might have even come up with a better solution!