8

Not my hack but when I was in university, for one test we had to find all 3 digits number that satisfied current set of criteria. Friend of mine knew from earlier that solution is one number and written program that just prints that number. TA give him 0 points and he get in fight claiming that not only his solution was good but also most optimal one.

Comments
  • 3
    That's called hardcoding. That's also a sign this guy needs to switch over to the business program
  • 0
    @xroad you are right. Thx
  • 2
    @xroad yes , but he is right though , when you can have the solution to a problem already computed you don't have to waste those precious CPU cycles , we don't calculate PI every time we want to use it , do we ?
  • 1
    @skonteam not if the problem is to calculate the value of PI
Add Comment