Piet Souris wrote:But for part A you do not need to sort.
Was it really that bad?Liutauras Vilda wrote:
I resolved it and deleted instantly to not have nightmares
Piet Souris wrote:Another fancy way is to create a TreeMap<Integer, Boolean>. with keys the index of "do()" or "don't()", and when finding the index of a correct mul, then use treemap.floorkey to get the status.