creately

Solving Interview Problems

Sometimes, we get to solve programming questions on site during software engineering interviews. This is one of the questions I used to ask from those who have applied for software engineering positions at Creately. A number of train engines are moving towards a common destination on the same track. Each train’s maximum speed and distance from the destination is given as an array. const trains = [ { id: 't1', distance: 1200, maxSpeed: 10 }, // .
Read more