Tredence OA | User Registration System: Membership Testing with Hash Sets

Tredence · Question · Posted Apr 2026

Problem Statement: User Registration System The Objective: You are given a list of N users who want to register for a company. You start with an empty database. Your task is to process each user registration request based on whether their name is already in your database. The Rules: If a user's name already exists in the database, print YES. If a user's name does not exist in the database, add the name to the database and print NO. Example ...

The full answer & interview discussion are available to premium members.

Log in Create a free account