BNY Mellon OA | Count User Logins | Merge Sort Counts | Valid Keys | Array Compromise | 25th July 2023
BNY-Mellon · Question · Posted Jul 2023
Question 1 Count User Logins A company wants to track the usage of its mobile app by recording users' login times and dates.The company stores the login information in a 20 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 per day in the format ["username «user_Id>", 'login_ date","login_date"]. It must filter invalid ...
The full answer & interview discussion are available to premium members.
Log in Create a free account