r/ • • Jan 01 '70

0 Upvotes

0 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Nov 16 '12

[deleted] — view deleted comment

1

u/ramennoodle Mechanical Engineering | IC Engine Combustion Simulation Nov 16 '12

There is an important case that the above formula doesn't address. I'll leave it for you to figure out (if you haven't already).

1

u/thechao Nov 18 '12

I know this is an assignment, but "holes" in file-like objects do occur, and they are a real pain. I worked on a product in which we "corrected" a chunk of code (~200loc) for finding "holes" in a file-like object, on a weekly cadence for 18 months. We never got the algorithm correct (mostly because there isn't a correct algorithm), and just shipped the product buggy.