We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Number Line Jumps
Number Line Jumps
Sort by
recency
|
3815 Discussions
|
Please Login in order to post a comment
What do you think about this solution ?
javascript
C#
JAVA
function kangaroo(x1, v1, x2, v2) { // Write your code here //canguro y velocidad (saltos den la grafica) let velocidad1 = x1 let velocidad2 =x2
for(let i = 0;i<=20000; i++){ velocidad1+= v1 velocidad2+= v2 console.log(velocidad1,velocidad2) if(velocidad1 === velocidad2){
} return 'NO'
}