BNY Mellon (SRM)| Binary Storage | Count User Logins | Valid Keys | Array Compromise

BNY-Mellon · Question · Posted Jul 2023

Question 1 Count User Logins A company wants to track theusage of its mobile app by recording users' login times and dates. The company stores the login information in a 2D array of strings, logs which contains data in the format ["username<user_id>", "login_time", "login_date"]. They need a function to process the logs and output a 2D array of strings, sorted lexicographically, that displays the number of times each user logs in the format ["username<user_id>", "login_date", "login_count"]. It must filter invalid ...

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

Log in Create a free account