I was solvingCSES — Towersand came with an alternate problem which I think can be solved using DP somehow: Youare given n cubesina certain order,andyour taskisto build towersusingthem.Whenevertwo cubes are one
I was solvingCSES — Towersand came with an alternate problem which I think can be solved using DP somehow: Youare given n cubesina certain order,andyour taskisto build towersusingthem.Whenevertwo cubes are one on topofthe other,the upper cube must be smaller than the lower cube.Youmust ...