Number Line Jumps | Kangaroo Problem | HackerRank | Algorithms | Interview

Number Line Jumps | Kangaroo Problem | HackerRank | Algorithms | Interview

Coding Cart

4 года назад

2,387 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Manish Thakur
Manish Thakur - 27.02.2023 22:54

thank you so much

Ответить
Sharabu Gnanesh
Sharabu Gnanesh - 23.10.2022 20:20

Bro I am sure that people chosing short videos for code and losing this much of explanation from you !!!
But people who watched your videos gets good knowledge and others get only code !
Thanks for explaining ☺️

Ответить
Sharabu Gnanesh
Sharabu Gnanesh - 23.10.2022 20:00

My Explaination : ) Instead of iterating every time
at particular n jumps it will meet then both positions at same point
1st = a+n(b)
2nd = x+n(y)
both points are eq right ?
let us eq 1st=2nd
i.e., a+n(b)=x+n(y)
after solving this we get n=(a-x)/(y-b)
and if its reminder is 0 its perfectly divisible and meets at particular point : )

Ответить
Sharabu Gnanesh
Sharabu Gnanesh - 23.10.2022 19:58

really a good explaination !!!!!!!!

Ответить
Mukul Pandey
Mukul Pandey - 07.09.2022 09:00

explained well..please continue series on hackerRank problem solving questions.....most have not explained why they are doing(x2-x1)%(v1-v2)..but u explained well

Ответить
ASKEW_HUMIDITY_20years_RADHATOR
ASKEW_HUMIDITY_20years_RADHATOR - 06.10.2020 22:21

I was looking for the animal but hey something new !:)

Ответить
s d
s d - 15.08.2020 19:57

Hello can I hire you for a python script

Ответить
Neha Kumari
Neha Kumari - 20.06.2020 06:25

Another nice session

Ответить