All challenges
Code AnalysisHard 60s

Rules engine vs hard-coded conditions

def approve(loan): if loan.amount < 10000 and loan.score > 700 and loan.age > 18: return 'approve' if loan.amount < 5000 and loan.score > 650 and loan.age > 21: return 'approve' # 40 more overlapping if-statements, changed weekly by business Business changes these overlapping conditions weekly. Which architecture best fits?

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle