Problem bank
Problem 244 of 333HardCodingP244
Later days that closed lower
You are given daily closing prices . For each day , return the number of later days with . Checking every pair is ; do it in . For example, closes give .
See the hint and solution with a free account
Every problem on Quant Engine is free, with a hint and a full worked solution. Making an account takes 30 seconds and no card. Then you can see them and track what you have solved.