How to solve this problem?

Revision en1, by AmanRaushan, 2024-11-19 18:47:33

i found this problem on leetcode discussion but not able to solve how to solve this can someone share some idea.

[link](https://leetcode.com/discuss/interview-question/algorithms/6056172/TikTok-AMS-Grad-Assessment-2025-Start-16-21-Nov-(Generic)/)

link

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English AmanRaushan 2024-11-19 18:48:36 3077
en1 English AmanRaushan 2024-11-19 18:47:33 363 Initial revision (published)