HackerRank : Moody’s Analytics University Hackathon – Asterisk Expressions

In Mathematics, exponentiation has higher operator precedence than multiplication. This means that any exponentiation in the expression must be evaluated first before before any multiplication. For the purposes of this challenge, exponentiation is left-associative, which is different than you would normally evaluate it. This means that is evaluated as and not as . In Python, the exponentiation operator… Read More »

HackerRank : Moody’s Analytics University Hackathon – Small Risk Trading

A company can make at most of available trades. Each available trade has the following properties: : A floating-point number denoting the trade’s probability of being profitable. : A floating-point number denoting the trade’s potential profit. : A floating-point number denoting the trade’s potential loss, which has a probability of . Given the values of , , and… Read More »