SYSC 2002 Data Structures and Algorithms

Fall 2010 - Practice Problems

Home

Practice Problems:

Here is a link to some practice problems put together by Prof Adrian Chan, who has taught ECOR 1606 many times.

Note however that some of these problems were written with C++ environments other than Dev-C++, and some code may need slight changes to work properly in Dev-C++. The common differences are:

  1. #include statements have the .h (e.g. <#include iostream.h> instead of <#include iostream>)
  2. the using namespace std; is often not present and should be added after the #include statements
  3. sometimes the main program declaration is void main(void) whereas we will be using int main()
  4. before exiting the program the lines system("pause"); and return 0; should be present.

Updated September 24th, 2010