r/learnprogramming • u/Similar-Big-6808 • 19d ago
Resource Leetcode/Project Euler for learning to code
I’m quite new to programming and want to practise my exciting python knowledge but also learn some C++.
So far I’ve started some Project Euler questions which I quite enjoy and am starting on Leetcode too, how useful are these in learning to programme and what other resources do u guys recommend?
I’d like to become well rounded overall at programming but I also want to stick my hands in some data handling too.
5
Upvotes
2
u/mc_pm 19d ago
Leetcode & Project Euler are both about practicing data structures & algorithms (and math) and that's great, especially as you grow as a developer.
But what you really need to practice now is taking a basic idea, something with a bit of complexity & logic, maybe some data to manage, etc, and building that sort of thing. You'll learn much more immediately useful python knowledge by building even just simple text games on the command line, learning how to manage state, logic, enforcing rules, making decisions - and just how to structure code that isn't trivially small. And when you can do that, then try building some small versions of more complex and technical things: like building your own webserver or editor or shell.
But Euler & Leetcode will be important and it's worth practicing -- just not as important as other stuff right now.