these questions are so hard for a beginer, I went through the course above this and even after completing that I cant understand how to solve the question. I found the answer of this question in geeksforgeeks but i still dont understand how they did it.
can you please tell me how to go through these hard questions as a beginner, some tips and tricks and how to approach these kinds of questions.