Google interview question

One leetcode medium question with an additional condition.

Interview Answer

Anonymous

2 Nov 2023

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