Friday, 23 August 2013

When to OR should I be looking for alternate solutions when programming?

When to OR should I be looking for alternate solutions when programming?

Just started c programming. I noticed that alot of the questions may have
alternate/more effecient solutions. Assuming that the question took about
an hour to solve, should one straight away look for alternate solutions
once it has been solved? Should I be looking for better solutions at all?
Or is it just best to get the thing up and running and forget about it.
Good example is the project Euler question 1. I solved it via brute force
method, however, obviosuly the mathematical is more effecient/better
solution. Should I have tried to go this route before I started writing
code?

No comments:

Post a Comment