bars
📈
notes
search
circle-xmark
Ctrl
k
copy
Copy
chevron-down
0528_Random_Pick_with_Weight
Solution1 前缀和 + 二分查找
时间复杂度
构造函数 $O(n)$
pickIndex $O(logn)$
空间复杂度 $O(1)$
Previous
0528_Random_Pick_with_Weight
chevron-left
Next
0530_Minimum_Absolute_Difference_in_BST
chevron-right
Last updated
4 years ago
Was this helpful?
Was this helpful?