0
Is it possible to start learning algorithms in a declarative (functional, to be more specific) way?
By algorithms, I mean dynamic programming, greedy algorithms etc. Almost all of us are probably familiar with imperative programming, which makes things easier when it comes to algorithms. I just want to learn algorithms and functional programming at the same time, but I can't figure out how to do so. Or no one would spend time trying that?
2 Respostas
+ 1
If you don't use classes, only functions, then it's already functional programming, because you order all your instructions in functions, which you'll call later. While learning different algorithms, I surprisingly observed that only functions are used - OOP or stuff like that. Check for the Greedy technic or recursivity.
0
Thanks for your answer, I didn't notice that. I use functions when learning algorithms all the time.