Тёмный

Knight Probability in Chessboard | leetcode 688 | Hindi 

Codebix
Подписаться 28 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 37   
@rohan8758
@rohan8758 2 месяца назад
Great explanation sir, It is brilliant & amazing both at the same time, you have explained in a simple way for this tough problem!
@0anant0
@0anant0 4 года назад
Thanks! Very nicely explained! For line: if (K == 0) return 1 we are at leaf node -- no more moves left, and we are still inside board, so prob of knight staying inside board = 1
@utkarshsharma1185
@utkarshsharma1185 2 года назад
Thanks sir for the clear explanation
@harendrakumar9966
@harendrakumar9966 2 года назад
Sir , Aapka explanation skill Gajab ka hai... Ek number.
@ToddlerTeddyToday
@ToddlerTeddyToday Год назад
Would be helpful if you also include space & time complexities. Thanks for this good explanation.
@akankshashrivastava1832
@akankshashrivastava1832 2 года назад
Nice! Easy explanation - very well explained the problem. Keep up the good work!! - waiting to see more solutions. Thanks!
@jagjiwanchimkar8106
@jagjiwanchimkar8106 2 года назад
Amazing bro, Please keep uploading video.
@herculean6748
@herculean6748 Год назад
3D dp le sakte kya? badi value store kar paenge kya?
@pravendra291
@pravendra291 11 месяцев назад
Thank u sir.
@nikhilaggarwal9325
@nikhilaggarwal9325 3 года назад
upload more content, its really good
@codebix1096
@codebix1096 3 года назад
Working on it Thank you. Follow our linkedin page for regular updates www.linkedin.com/company/codebix/?viewAsMember=true
@apoorvchaturvedi2493
@apoorvchaturvedi2493 3 года назад
nicely explained, thanks for sharing!
@dhanashreegodase4445
@dhanashreegodase4445 2 года назад
Thanks! ✨
@gharatmayuresh15
@gharatmayuresh15 4 года назад
Excellent explanation !!!
@codebix1096
@codebix1096 3 года назад
Glad it helped! Follow our linkedin page for regular updates www.linkedin.com/company/codebix/?viewAsMember=true
@noortech254
@noortech254 3 года назад
hi can you explain direction , how u took the values Other things i got it nicely explained kudos 2 u
@hammadhassan9125
@hammadhassan9125 Год назад
if you place knight at [0,0], then coordinates of all the possible moves that it can take are stored in dir. this serves as a blueprint of where knight might land. for example if knight is at [4,4]; and you want to get the coordinates of all the possible moves from this location, you can simply add row num (4) of present location into row num of all moves of dir. and similar for col. i hope this helps
@dev-rock
@dev-rock 2 года назад
Seems like I am way too weak in probability. Can you pls explain what I am finding vs what question asked ? for n = 3, k = 2, row = 0, column = 0, after 2 moves, there are 4 ways in which khinght is in board & 18 ways in which it will be out of board. I was doing something like 4 / (4 + 18). Can you explain what does 4 / (4 + 18) actuallt means?
@37_prathameshkelapure14
@37_prathameshkelapure14 2 года назад
Let's take: 8x8 chessboard, initial position of the knight : (0, 0), number of steps(k) : 1 At each step, the Knight has 8 different choices to move from. If it starts from (0, 0), after taking one step it will lie inside the board only at 2 positions out of 8 positions, and will lie outside the chessboard at remaining 6 other positions. So, the probability is 2/8 = 0.25...simple
@dev-rock
@dev-rock 2 года назад
@@37_prathameshkelapure14 thanks...ig will have study some probability stuff before I get to DP lol!
@shagunagrawal3773
@shagunagrawal3773 3 года назад
amazing explanation 🔥
@sujaygijre2438
@sujaygijre2438 3 года назад
great video
@codebix1096
@codebix1096 3 года назад
Thank you. Follow our linkedin page for regular updates www.linkedin.com/company/codebix/?viewAsMember=true
@relvisdsouza3541
@relvisdsouza3541 3 года назад
Dono solutions ka time and space complexity bata do please
@KuldeepSahu-sq3cq
@KuldeepSahu-sq3cq 3 года назад
can anyone explain how 2d array makes like it.
@jeevteshsingh899
@jeevteshsingh899 3 года назад
Its gooooooodd
@codebix1096
@codebix1096 3 года назад
Thank you. Follow our linkedin page for regular updates www.linkedin.com/company/codebix/?viewAsMember=true
@bhupendrasinghchauhan127
@bhupendrasinghchauhan127 4 года назад
Ghoda is a respectable animal
@0anant0
@0anant0 4 года назад
... who can come closest to Vazeer (Queen) without Vazeer (Queen) killing it :-)
@harshshukla7260
@harshshukla7260 3 года назад
Sir aur videos banao please
@codebix1096
@codebix1096 3 года назад
working on it! Follow our linkedin page for regular updates www.linkedin.com/company/codebix/?viewAsMember=true
@mrprime557
@mrprime557 Год назад
What would the time complexity be after memoization ? (before it is exponential)
@jeevteshsingh899
@jeevteshsingh899 3 года назад
Bro don't stop making videos
@codebix1096
@codebix1096 3 года назад
I will try my best Thank you. Follow our linkedin page for regular updates www.linkedin.com/company/codebix/?viewAsMember=true
@mrprime557
@mrprime557 Год назад
I love you !
Далее
01 knapsack | Recursion | Memoization | Hindi
18:13
Просмотров 2,3 тыс.
Find Peak Element | leetcode 162 | Hindi
18:43
Просмотров 14 тыс.
Физика пасты Карбонара 🧪🔬
00:57
новое испытание
00:40
Просмотров 315 тыс.
Most US College Students Get This Wrong
7:14
Просмотров 7 млн
A Color Test That Can Tell Your Mental Age
7:37
Просмотров 45 млн
The REAL Answer Explained
7:23
Просмотров 8 млн
Floating Chess from Wood and Epoxy Resin with LED
21:51
Физика пасты Карбонара 🧪🔬
00:57