background preloader

TopCoder,Inc.

TopCoder,Inc.

read Sphere Online Judge (SPOJ) DYNAMIC PROGRAMMING TopCoder — uthcode Resources for Solving Topcoder Problems TopCoder C++ for C Programmers C++ is an object oriented extension to the C programming language. C++ provides many benefits over traditional C while still maintaining C compatibility, allowing people to use C and C++ program in the same program. Within a competition, you’ll be required to use some basic C++ functionality to solve problems. What follows is a basic explanation for programmers who are currently familiar with C. Class: CellTower Method: best Parameters: vector <string>, int, int Returns: int Method signature: int best(vector <string> towers, int x, int y) To solve the problem you’ll need to create a class named CellTower containing a method best that takes three arguements (vector<string>, int, and int), and returns an int. Classes are defined using the class keyword. Note how the method is defined like you would define a standard C function. The STL To be able to compete, you’ll need to be familiar with two classes: vector and string. map

Related: