Amazon Interview Question
Software Engineer / Developersif you know the no of departments then its good ... divide the files into runs . each run on a microprocessor .. but keep the array share where you store the department sum and another array where no of employees /// or array of structure {salarysum,noofemployees}.... (shared thensemaphore to keep structure good )
now suppose department == x then a[department]+=salary
how about using SQL query to find average salary for each dept?
- apollo October 23, 2008