Skip to content

Instantly share code, notes, and snippets.

View p-malhotra's full-sized avatar

Pooja Malhotra p-malhotra

View GitHub Profile
/**
* Below code is for illustration purpose only
* Help to refactor the codefor this class
* Scope is only this class , you can assume other relations/dependencies working fine.
*/
/**
* This method uses y = mx+c to find path of vehicle.
* we are trying to check if all vehicles are in between those points on the line. This is calulated by partial formula.
* Assume all formula's are correct, how can we refactor code.
*/