← Questions
Fraud rings from shared devices and cards
0
I was asked this
No reports yet. Sign in to say where you were asked it.
A transaction log records which user used which device and which card. Investigate one target user in three steps:
- Return the users who used the same device as the target (excluding the target), sorted.
- A fraud ring is everyone connected to the target through any chain of shared devices or cards. Return the size of the target's ring.
- Each log line also carries a risk score. Block the target's ring when the average risk of its users is above 75, where users with score 0 are trusted: they still connect the ring but are left out of the average.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
