r/javahelp • • Jan 06 '21

Algorithm in Java Spring

I am Java self-taught, I just learned algorithms and spring framework. I want to master web programming using Java. I am still a student, I have never participated in real projects so I have many questions I want to be answered. I would be more than happy to receive an answer from someone.

-In Java Spring practical projects, algorithms such as recursion, backtracking, BFS, DFS, binary tree search, etc are used and used a lot? When Spring Data JPA has a search function, are search algorithms such as binary tree search, BFS, DFS, etc important and used?

- Between the algorithm and the framework, which one should I learn more deeply?

Hope someone will answer these of my problems. Thanks very much

21 Upvotes

11 comments sorted by

View all comments

2

u/[deleted] Jan 06 '21

" I have never participated in real projects " - You can always fix this by participating in real projects. There are plenty of open opportunities in open source community, build your git profile, try to contribute something everything daily.

If not enough time or not getting enough knowledge to do something, just mimic some and see if some one has contributed any code, how they have done, what they have done it.

As already posted by others, it should be a balance between algorithm and framework. If you are master of algorithm but you don't know basics of framework, you are of no use. I will suggest go slowly in parallel in both.

At the same time, algorithm is important as most of interview questions are based on it, so it is not only important to know the basics, but you must have hands-on experience of implementation of most of algorithms so that you can answer better the practical questions of interview also.

May be you can try to create your own repository of implementation of each algorithm and play around with code.

Hope it helps feel free to DM me or ask here more.