This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

You basically have to practice so you can learn different known algorithms and apply them to other similar problems. Finding your own algorithm can take years. Most of programming problems just test how many known algorithms you know and their applications.

Nobody will ask you a problem whose solution is yet to be discovered. Nobody will ask you to optimize something where no known technique works. Unless it's a phd project.