Company: TSMC
Difficulty: medium
User Session Time Filte Application logs are used in analysis of interactions with an application and may be used to detect specific actions. A log file is provided as a string array where each entry is in the form \" user_id timestamp action \". Each of the values is separated by a space. Both user_id and timestamp consist only of digits, are at most 9 digits long and start with a non-zero digit. timestamp represents the time in seconds since the application was last launched action will be either \"sign-in\" or \"sign-out\" Given a log with entries in no particular order, return an array of strings that denote user_id \'s of users who signed out in maxSpan seconds or less after signing in. Function Description Complete the function processLogs in the editor below. The function has the following parameter(s): string logs[n] : each logs[i] denotes the i th entry in the logs int maxSpan : the maximum difference in seconds between when a user logs in and logs out for the user to be inclu