Urgent.News

What's breaking now, across thousands of outlets.

Tech

From Mathematical Equations to Financial Modeling: My HackerRank Hackathon Experience

Recently, I participated in the HackerRank Orchestrate hackathon. The challenge was to design a financial affordability decision engine called Buy or Wait? The system had to decide whether a person should: Pay for something now Pay partially Use installments Wait until a later date Not make the payment When I first read the problem, I thought it was mainly a mathematical calculation: Current…

In the HackerRank Orchestrate hackathon, the task was to create a financial affordability decision engine called "Buy or Wait?". The system needed to determine whether a person should pay for something now, pay partially, use installments, wait until a later date, or not make the payment at all. Initially, the participant thought the problem was purely mathematical, but upon analyzing the dataset and problem statement, they realized it was a financial modeling problem.

The challenge involved deciding if a person could afford a purchase without dipping into their minimum safety balance, considering factors such as upcoming rent, pending debits, subscriptions, future salary, and other recurring expenses. The participant structured the system into separate stages. First, the system loaded financial profiles, events, requests, payment options, messages, images, and exchange rates.

Next, the engine built the user's financial state by converting foreign-currency transactions, reserving pending debits, ignoring failed, cancelled, and unrealized events, detecting recurring income and expenses, applying relevant evidence from messages and images, respecting protected spending categories, and using the user's payment preferences.

The engine then created a future balance projection for each event, adding income, expenses, and proposed payment plans to the projection. The lowest projected balance was used to determine the safe amount, considering both current and future balances. Identifying recurring expenses was challenging, as repeated transactions did not always indicate a recurring pattern.

The participant used historical transactions and checked factors such as the number of occurrences, gap between transaction dates, consistency in cadence, stability of amounts, description consistency, and outlier values to determine recurring expenses.

The participant explained that choosing a payment plan involved simulating different options, such as full payment today, full payment at a later date, partial payment, or installments. Each plan was tested through the same balance simulation, and if the balance fell below the user's minimum safety balance at any point, the plan was rejected. Spending changes were also considered, with the engine checking if certain expenses could be stopped or reduced based on user preferences.

Although the project involved AI, the participant decided to keep the decision deterministic to ensure reproducibility and auditability. The affordability decision involved critical factors such as money, dates, constraints, and safety limits, which needed to be reliable. The participant used AI for implementation assistance, unstructured evidence, and explanation generation but relied on deterministic Python logic for the final financial decision.

The participant learned that the dataset did not always follow a straightforward mathematical pattern, and decisions depended on factors like pending events, income timing, recurring expense forecasting, and same-day transaction ordering.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The Env Catalog Is a Repository Artifact

59 variables, generated not written - and drift fails the build. 👋 I'm Anton - a software engineer working mostly in PHP/Symfony and Go, currently carving a live PHP monolith into Go services.

  • The Env Catalog is a generated file in PHP/Symfony and Go services.
  • It lists all environment variables, sourced from platform or service config.
  • The catalog ensures code and config alignment, failing build on mismatches.

Most of the Questions Will Not Be About Code

If you mentor anyone for longer than a few months, the subject will drift. You start out talking about testing strategy and pull requests, and one Tuesday they ask whether they should take a job in…

  • Conversations shift from technical to broader questions
  • Mentors must avoid overreaching with unsolicited advice
  • Confidentiality is crucial when discussing personal matters

Renovating a vibe-coded app: readable code, no reasoning behind it

A client had been building an education platform in Lovable for months. Too many issues piled up, so they brought in devs. I got assigned to it.

  • Reporter converted vibecoded app to production-ready platform
  • Identified 319 issues, including security concerns and inconsistent scoring
  • Discussed product question with client about definitive engine for scoring

More from Sunday 13 September →