Squarepoint | 4 Oct, 2024 | Company Usernames

Question · Posted Apr 2026

1. Company Usernames Problem Statement: When the Company hires new employees, it needs to assign usernames to them. Your task is to implement a system to assign unique usernames to new hires at the Company. Given an array of real-world names, names, return an array of usernames, usernames, each of which must be unique. Username constraints: Maximum length of the username is always 8 characters, and should be as close to 8 characters as possible May only contains characters in ...

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

Log in Create a free account