<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Code Challenges on Silvana Acosta</title>
    <link>https://silacos.netlify.app/blog/code_challenges_series/</link>
    <description>Recent content in Code Challenges on Silvana Acosta</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>&amp;copy; Silvana Acosta 2024</copyright>
    <lastBuildDate>Tue, 21 Jan 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://silacos.netlify.app/blog/code_challenges_series/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Longest Run of Heads</title>
      <link>https://silacos.netlify.app/blog/code_challenges_series/longest_run_heads/</link>
      <pubDate>Tue, 21 Jan 2020 00:00:00 +0000</pubDate>
      
      <guid>https://silacos.netlify.app/blog/code_challenges_series/longest_run_heads/</guid>
      <description>window.xaringanExtraClipboard(null, {&#34;button&#34;:&#34;&#34;,&#34;success&#34;:&#34;&#34;,&#34;error&#34;:&#34;&#34;})  pre { font-size: 13px; }  A coin is tossed \(n\) times, thereby generating a sequence of heads (H) and tails (T). A subsequence of consecutive heads is called a run of heads. Consequently, the following sequence of length \(n = 20\):
\begin{equation} HHTHTTHHHHTTTHHTTTTH
\label{eq:tosses} \end{equation}
contains 5 runs of heads with lengths 2,1,4,2,1, respectively. The longest run of heads is \(M_n = 4\).
If we toss a coin 1000 times and get that the largest number of heads in a row was 6, is this a fair coin?</description>
    </item>
    
  </channel>
</rss>
