22

问一道阿里的面试题如何求解

 4 years ago
source link: https://www.v2ex.com/t/645168
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
程序员 - @dazhangpan - N 年前面试阿里的时候有一道算法题不会做,后来一直念念不忘,在网络搜了一下也没找到答案,至今仍然没想出来...题目是给一个方法 foo(),能以各 50%的概率随机返回 0 或者 1。问题是基

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK