How to solve this problem?

Revision en1, by code_tycoon, 2022-03-14 00:12:19

This question was asked in hackwithinfy, I could not approach this problem anyhow, can anyone tell me the optimal approach to solve these type of problems and the solution of this specific problem

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English code_tycoon 2022-03-14 00:16:16 145
en2 English code_tycoon 2022-03-14 00:14:27 161
en1 English code_tycoon 2022-03-14 00:12:19 222 Initial revision (published)