ByteDance interview question

I think there was a dynamic programming question