Google interview question

string problem based on greedy approach, dp problem

Interview Answer

Anonymous

Jun 7, 2025

was able to answer the first one and got to an optimized solution not able to come up with a optimized for second question. it was a new question that i have'nt practiced much or seen before