Jump From LC Mediume to Hard

Is the process for getting good at leetcode hards just doing them over and over till you start getting them? On some level thats what it was like with mediums, but with those i felt like i was getting a better grasp of an algorithm or strategy. For Hards a lot of the time it feels like I know that algorithm they want from me but theres still some magic leap that im not always able to make. Shut up and keep grinding in the leetcode salt mines or try to change my approach?

New
๐Ÿชฆur rsus Oct 21, 2023

A lot of the time a hard just requires a novel combination of 2 algos you used in medium Sometimes it does require you to know entirely new algos though

Google OYNC63 Oct 21, 2023

Just do more mediums. hards are generally a waste of time because they require you to typically have the concepts at medium level on autopilot, then you can use most of your brainpower on catching the "tricks" for the hard question. But if you come across a hard in a normal interview you'd be well prepared if you did a ton of mediums anyway.

Pearson bumbumboi OP Oct 21, 2023

Solid advice, thanks!

Bank of America devintech Oct 21, 2023

the hards are so hard you'll end up remembering the solution after seeing it