After solving a problem in leetcode I have a habit of submitting other solutions posted in the discussion and comparing their run time and space with my solution. And if they are better than my solution I try to look their code and understand their logic. Is this a bad habit or good ? Should I spend my time here or move to other problems? Is this a waste of time?