filmov
tv
LeetCode Question 384: Shuffle an Array (Medium)
Показать описание
*Can you do random shuffle with streaming input using Reservoir Sampling?*
Welcome to channel _Trial & ErrCode_ ! Let's learn and improve problem solving and coding skills together!
Please feel free to leave your questions and suggestions in the comments below!
*LeetCode problem link*
*Timecodes*
00:00 - Intro
00:08 - Problem Description
00:32 - Solution Derivations: O(N * Q) Reservoir Sampling (streaming input supported)
02:26 - Code Implementations: O(N * Q) Reservoir Sampling (streaming input supported)
*Tags*
#leetcode #coding #interview #python
Welcome to channel _Trial & ErrCode_ ! Let's learn and improve problem solving and coding skills together!
Please feel free to leave your questions and suggestions in the comments below!
*LeetCode problem link*
*Timecodes*
00:00 - Intro
00:08 - Problem Description
00:32 - Solution Derivations: O(N * Q) Reservoir Sampling (streaming input supported)
02:26 - Code Implementations: O(N * Q) Reservoir Sampling (streaming input supported)
*Tags*
#leetcode #coding #interview #python