Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string disp() {
- stringstream ss (stringstream::in | stringstream::out);
- int currBall = balls[0].right;
- for (int i = 1; i <= numBalls; i++) {
- ss << " " << balls[currBall];
- currBall = balls[currBall].right;
- }
- return ss.str();
- }
Add Comment
Please, Sign In to add comment