Adobe interview question

2 medium level leetcode questions

Interview Answer

Anonymous

17 Jan 2024

Was able to come up with the approach and algorithm but could not get the correct output