CRED | Onsite | LLD Contact Management System
Anonymous User
2323

I appeared for the 1st round (Machine Coding) some time in Nov 2021. The first 15mins, the interviewer will brief about the problem statement and expectations and the last 15mins is for exaplaining the code. And was later asked to zip the code and share it in mail. Total time for interview is 2 hours. Basically 1.5 hour is for coding. See the problem statement below

		LLD Contact Management System
		Functionality:
		Add/update contact(s)
		Search contacts (partial - prefix or complete) (Note in all searches show the total count & search results)
		Search by first name (search term is case insensitive)
		Search by last name (search term is case insensitive)
		Search by phone number
		 
		Expectations:
		Identify all the entities and attributes required for the above functionality
		Please don’t create REST APIs or any UI for the same.
		Please don't use any database or data stores for this. You can store the data in-memory data structures.
		You can test the functionality using unit test cases.
		The focus is on the core functionality and how it is implemented v/s how it is presented (UI or API structure).
		Use coding best practices (SOLID, DRY, etc.) and ensure that you are writing modular & extensible code (to accommodate any future changes in functionality)
		

I could not implement prefix searching. Mailed the recruiter regarding the update, Never heard back.

Comments (5)