RANDOM PICK WITH WEIGHT | LEETCODE # 528 | PYTHON BINARY SEARCH SOLUTION

Описание к видео RANDOM PICK WITH WEIGHT | LEETCODE # 528 | PYTHON BINARY SEARCH SOLUTION

In this video we are solving an interesting binary search problem: Random Pick with Weight (Leetcode # 528). This question is very similar to other binary search questions we've seen before due to the similar nature of how we derive the final solution by sliding our left and right pointers down accordingly.

It can be a bit tricky to see how to set up the binary search but luckily you just need to see the solution once to realize how it works and what to do with it in the future if you get this problem.

Комментарии

Информация по комментариям в разработке