Back to problems

Count User Logins (Singapore)

Algorithm · PayPal · Medium

A company monitors its mobile app engagement by logging each user's login timestamp and date. The data is kept in a 2D string array logs, where every entry follows the pattern ["/username ","login_time","login_date"]. Your task is to implement a function that processes these logs and returns a lexicographically sorted 2D string array. Each row should show a user's daily login count in the format ["/username ","login_date","login_count"]. Any invalid entries in the input must…

Checking your access…