Introduction to Computer Science
CompSci 101 : Spring 2014

Problem Solving

After you have worked out an algorithm for solving a problem, write a program that implements your algorithm. When finished, test your programs.

  1. Common Count

    Two strings have a letter in common if it appears in both strings. The position of letter is not important for it to be counted as common. Once a particular letter is counted as in common, it cannot be counted again. For example, an o appearing twice in one word but only once in the other counts only as one letter in common. However, an o appearing twice both words counts as two letters in common.