I am new to topics like DP and Graphs. Is it ok to look at the solution if i am unable to solve the question? Or should i learn these concepts in detail and try another shot at these problems without looking at the solution? I tried reading about DP but was still not able to think of the solution. Any advice?