Thursday, June 17, 2010

DPBO – Final Exam (Programming): Isosceles Triangle of Numbers (Problem B1)

This is the third post for the series. For other posts in the series, see:
The following describes the problem:
Make a program to print out numbers in triangular patterns according to the output examples. The program will accept a positive integer not larger than 20 as a command-line parameter. Output examples are given below. Note that no space is printed before the last row of the triangle.

DPBO – Final Exam (Programming): Generic Bubble Sort (Problem A2 and C2)

This post is the second part of DPBO practical final exam on programming.  For other parts, please see:
This problem appears as both Problem A2 and C2. The problem description is given below:
You are given a Bubble Sort sorting program. This program provides a sorting method below.

Monday, June 14, 2010

DPBO – Programming Final Exam Solutions: Longest Common Substring (Problem A1)

This is the first post in the series of posts in which I am going to provide some solutions to the final exam of DPBO course this year. If I can, I will first provide the problem question and then proceed with the solution. I will try to provide as accurate English translation of the problem as possible, though I will sometimes modify the wordings slightly to make it clearer to the reader.