Classroom Register (Student CRUD)

Programming Interview Medium 8 views
Back to Questions

Problem Description

Maintain a student register. Process q commands: ADD id name, DEL id, GET id, COUNT. Print output for each GET and COUNT.

Input Format

See description.

Output Format

See description.

Sample Test Case

Input:
7 ADD 101 Ravi ADD 102 Neha GET 101 DEL 102 GET 102 COUNT COUNT
Output:
Ravi NOT_FOUND 1 1

Constraints

Total operations up to 200000.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next