JavaScript/6kyu/Tortoise_racing.js
// or Google: "convert decimal time to hours minutes seconds"
or Google: "convert decimal time to hours minutes seconds"
or Google : " convert decimal time to hours minutes seconds "
function race(v1, v2, g) {
  if (v1 >= v2) return null;
  let seconds = (g * 3600) / (v2 - v1);
  let date = new Date(null);
  date.setSeconds(seconds);
  let result = date.toISOString().substr(11, 8).split(':');
  return result.map((el) => {
    return parseInt(el, 10); 
  });
}
function race ( v1 , v2 , g ) { if ( v1 >= v2 ) return null ; let seconds = ( g * 3600 ) / ( v2 - v1 ) ; let date = new Date ( null ) ; date . setSeconds ( seconds ) ; let result = date . toISOString ( ) . substr ( 11 , 8 ) . split ( ':' ) ; return result . map ( ( el ) => { return parseInt ( el , 10 ) ; } ) ; }
or Google: "convert decimal time to hours minutes seconds"
or Google : " convert decimal time to hours minutes seconds "