Skip to content

Instantly share code, notes, and snippets.

View fanaugen's full-sized avatar
🙂
always learning

Alex Jahraus fanaugen

🙂
always learning
  • Berlin
View GitHub Profile
@fanaugen
fanaugen / Code Golf – Transaction Tally.md
Last active June 13, 2025 06:35 — forked from yshapiraGC/fraud_detection_shortest_code.rb
GoCardless Coding Challenge 1: Fraud Detection Shortest Code Challenge

Scenario

You're developing a system to analyze transactions for potential fraud.

You have a list of transactions, each with a variety of attributes like amount, currency, status, and a fraud score.

Your goal is to calculate total amounts for different currencies only for transactions flagged non clean.

You shall refactor ONLY the analyze_transactions method to be the shortest possible, without changing any other pieces of the code.