Google interview question

One leetcode medium question with an additional condition.

Interview Answer

Anonymous

Nov 2, 2023

Variation of D&C technique with code in c++. Interviewer provided some hints to improve and some additional constraints after initial solution.