r/learnprogramming • • Oct 15 '17

500 Data Structures and Algorithms practice problems and their solutions

1.7k Upvotes

68 comments sorted by

View all comments

24

u/Calypxo Oct 15 '17

Is it bad that I can't begin to figure these out? I'm still a very new Java Programmer but I'm afraid of being unable to learn.

19

u/[deleted] Oct 15 '17

No its not. Everyone had knowledge gaps and that's fine. This kind of stuff gets easier the more you do it. Getting your foot in the door is hard, but it does get easier

7

u/MoltenCookie Oct 15 '17

Take it easy and relax. Everyone starts off not being able to solve these kinds of questions because they are different from the types of problems you'd expect in high school. Just be willing to learn how to approach these problems from an analytical perspective after you've done your homework on data structures and algorithms

4

u/[deleted] Oct 15 '17

Maybe take a step back: try to plot out the algorithm you'd use to do it, even if you don't know how to make a computer do it yet.

I have no shame in admitting that I can't do any of these in Java either.

2

u/HotBunnz Oct 15 '17

As a non-programmer, I took a look at this to see if my logic input coincided with the answer descriptions. Extremely interesting to watch how these decisions affect program viability.

4

u/Feel_Free_To_Downvot Oct 15 '17

At first they really look scary but more you spend time with them more familiar you will become and start making sense of them. My advice would be take it slowly and rush.

Also, one thing with data structures and algos is that in the beginning they seem like useless, archaic concepts or only useful for job interviews.

Truth is down the road, when you move from trivial tasks and more advanced topics become concern, algos will come very handy.

-16

u/[deleted] Oct 15 '17 edited Oct 15 '17

[removed] — view removed comment

34

u/Makishanuto Oct 15 '17

Careful, don't enter codeabby.com. That's a phishing site and will try to install malicious extensions.

http://codeabbey.com

9

u/errorseven Oct 15 '17

Good catch, its late.

4

u/rockyrainy Oct 15 '17

Pretty cool site.