Task Tracker

Programming Interview Medium 8 views
Back to Questions

Problem Description

You will receive q commands: ADD name, DONE name, COUNT. Create TaskTracker class. COUNT prints how many tasks are pending.

Input Format

First line q. Next q lines commands.

Output Format

Outputs for COUNT.

Sample Test Case

Input:
6 ADD study ADD gym COUNT DONE study COUNT DONE gym
Output:
2 1

Constraints

q

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next