← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Implement a Reddit-style moderator list from a newline-delimited log string. The interview usually comes in three parts:
target: the moderator receiving the actionaction: add or remove in Parts 1 and 2, plus demote in Part 3actor: the moderator who performed the actiontimestamp: integer timestamp, increasing over time
Assume:SYSTEM may appear as an actor to seed the first moderator, but SYSTEM is not part of the returned mod list unless explicitly addedcan_remove_mod(...)get_mod_list(...)Implement a class for a single moderator list: `class ModList: def init(self, logs: str): $L45 $L46($L47) -> $L48: $L4a $L4b($L4c) -> $L4d[$L4e]: