请教一道题目# JobHunting - 待字闺中
c*o
1 楼
在glassdoor上看到一道题目:
Given a file of unknown size, devise an algorithm to give equal probability
randomization to choosing a single line given a one line buffer space.
请教思路?
Given a file of unknown size, devise an algorithm to give equal probability
randomization to choosing a single line given a one line buffer space.
请教思路?