PayPal Interview Report
- 0of 0 votes
AnswersWhat's an efficient way to process a large file, with lines of varying length?
- JeffD October 08, 2010
-- I said, break it up and process the pieces in parallel, using fseek to divide up the file, and scan backward and forward for the line terminators to decide which chunk a line belongs to. I think the answer he wanted though was to memory map it.| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Operating System - 0of 0 votes
AnswersGiven 2 equal-length arrays of integers, find pairs, one from each array, that sum to 0.
- JeffD October 08, 2010
-- note that one wrinkle of this problem over the more usual form, which is to do this in a single array, is that you can't use the indexes / iterators crossing each other to know to stop, rather their /values/ have to cross (if you're doing it right, at or near 0).| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.