Research over the topic, till the last breath. Even if you didnt get the expected solution, you have learned a lot of things.