The hard part of leet code is not the coding but learning to think about problems the correct way.
You can solve leet code problems on the white board with some sketches it has nothing to do with the code itself.