← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
You are given a log file containing transaction records for users. Each log entry is a string with the format: "<user_id> <order_type> <amount> <day>"
Your task is to write a function that processes these logs and returns a list of user_ids who are considered "trusted" based on the following criteria:
The trust score is calculated as follows:
Return the list of trusted user_ids sorted in ascending order.