{"blocks": [{"key": "4b1d9994", "text": "Scenario", "type": "header-two", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "b444caa8", "text": "Tech interview round 1 – probability puzzle about streaks", "type": "unstyled", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "ce983392", "text": "Question", "type": "header-two", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "41c2482c", "text": "We toss a fair coin 1,000 times. Each time the outcome differs from the previous toss, a new streak begins (the first toss also starts a streak). What is the expected number of streaks? Generalise the expected streak count when the coin shows heads with probability p.", "type": "unstyled", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "c5b6f49a", "text": "Hints", "type": "header-two", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "7f917cc3", "text": "Indicator for change between toss i and i+1; linearity of expectation.", "type": "unstyled", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}], "entityMap": {}}