Online Assessment
You are interested in analyzing the housing market in a given city. You have data on all houses that have recently sold, as well as their size (in square feet).
In particular, you are interested in determining a valuation of a candidate house based solely on this historic data (sales price and square footage).
The 1300 square foot houses are both outliers, so they are discarded. The new arrays are area' = [1200, 1200, 1200, 2000] and price' = [12000, 14000, 13000, 30000]. Interpolate the price between the two house sizes remaining.
The interpolated price is 13000 + (1500 - 1200) * (30000 - 13000) / (2000 - 1200) = 19375.
Function Description Complete the function findValuation in the editor below. The function must return the expected price rounded to the nearest integer.
findValuation has the following parameter(s): int reqArea: the area of the candidate house in square feet int area[n]: area[i] is the area in square feet of the ith house sold from the historic data set int price[n]: price[i] is the price of the ith house sold from the historic data set
Constraints • 500 < reqArea < 105 • 500 < area[i] < 105 for all i such that 0 < i
The following metrics were computed from 1 interview experience for the IMC Trading Software Engineer role in California City, California.
IMC Trading's interview process for their Software Engineer roles in California City, California is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for IMC Trading's Software Engineer interview process in California City, California.