<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""></div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">import</b></span> UIKit</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// here are the inputs</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(28, 0, 207); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(15, 104, 160);">inputInts</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> = [</span>72<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>111<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>63<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>85<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>61<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>56<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>118<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>121<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>61<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>69<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>63<span class="" style="color: rgba(0, 0, 0, 0.85);">,</span>61<span class="" style="color: rgba(0, 0, 0, 0.85);">]</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// working on Output #1</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span> <span class="" style="color: rgb(15, 104, 160);">sum</span> = <span class="" style="color: rgb(28, 0, 207);">0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">for</b></span> number <span class="" style="color: rgb(155, 35, 147);"><b class="">in</b></span> <span class="" style="color: rgb(50, 109, 116);">inputInts</span> {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    <span class="" style="color: rgb(50, 109, 116);">sum</span> <span class="" style="color: rgb(108, 54, 169);">+=</span> number</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">}</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(108, 54, 169);">print</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>"Output #1 - Sum of inputs is: <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">sum</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span>"<span class="" style="color: rgba(0, 0, 0, 0.85);">)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// working on Output #2</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>average<span class="" style="color: rgba(0, 0, 0, 0.85);"> :</span><span class="" style="color: rgb(57, 0, 160);">Float</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(28, 0, 207);">0.0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);">average<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(57, 0, 160);">Float</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>sum<span class="" style="color: rgba(0, 0, 0, 0.85);">) </span><span class="" style="color: rgb(108, 54, 169);">/</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(57, 0, 160);">Float</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">.</span><span class="" style="color: rgb(108, 54, 169);">count</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>averageInt<span class="" style="color: rgba(0, 0, 0, 0.85);"> :</span><span class="" style="color: rgb(57, 0, 160);">Int</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(57, 0, 160);">Int</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span><span class="" style="color: rgb(50, 109, 116);">average</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// ceil is like rounding but forced up</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(15, 104, 160);">averageRemainder</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(57, 0, 160);">Int</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span><span class="" style="color: rgb(108, 54, 169);">ceil</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span><span class="" style="color: rgb(57, 0, 160);">Float</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">.</span><span class="" style="color: rgb(108, 54, 169);">count</span><span class="" style="color: rgba(0, 0, 0, 0.85);">) </span><span class="" style="color: rgb(108, 54, 169);">*</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> (</span>average<span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(108, 54, 169);">-</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(57, 0, 160);">Float</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>averageInt<span class="" style="color: rgba(0, 0, 0, 0.85);">))))</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(108, 54, 169);">print</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>"Output #2 - Average of inputs is: <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">averageInt</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span>, <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">averageRemainder</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span>"<span class="" style="color: rgba(0, 0, 0, 0.85);">)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// working on Output #3</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>arrayOfEvens<span class="" style="color: rgba(0, 0, 0, 0.85);"> = [</span><span class="" style="color: rgb(57, 0, 160);">Int</span><span class="" style="color: rgba(0, 0, 0, 0.85);">]()</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">for</b></span> number <span class="" style="color: rgb(155, 35, 147);"><b class="">in</b></span> <span class="" style="color: rgb(50, 109, 116);">inputInts</span> {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    <span class="" style="color: rgb(155, 35, 147);"><b class="">if</b></span> ((<span class="" style="color: rgb(57, 0, 160);">Int</span>(number <span class="" style="color: rgb(108, 54, 169);">/</span> <span class="" style="color: rgb(28, 0, 207);">2</span>) <span class="" style="color: rgb(108, 54, 169);">*</span> <span class="" style="color: rgb(28, 0, 207);">2</span>) <span class="" style="color: rgb(108, 54, 169);">==</span> number) {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        <span class="" style="color: rgb(50, 109, 116);">arrayOfEvens</span>.<span class="" style="color: rgb(108, 54, 169);">append</span>(number)</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">}</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(108, 54, 169);">print</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>"Output #3 - Even numbers: <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">arrayOfEvens</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span>"<span class="" style="color: rgba(0, 0, 0, 0.85);">)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// working on Output #4</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>largest<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(28, 0, 207);">0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>largestPosition<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(28, 0, 207);">0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">for</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> n </span><span class="" style="color: rgb(155, 35, 147);"><b class="">in</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(28, 0, 207);">0</span><span class="" style="color: rgb(108, 54, 169);">..<</span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">.</span><span class="" style="color: rgb(108, 54, 169);">count</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> {</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">    </span><span class="" style="color: rgb(155, 35, 147);"><b class="">if</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> (</span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">[n] </span><span class="" style="color: rgb(108, 54, 169);">></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>largest<span class="" style="color: rgba(0, 0, 0, 0.85);">) {</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">        </span>largest<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">[n]</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">        </span>largestPosition<span class="" style="color: rgba(0, 0, 0, 0.85);"> = n</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">}</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// print("largest is \(largest) at position \(largestPosition)")</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>smallest<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(50, 109, 116);">largest</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>smallestPosition<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(28, 0, 207);">0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">for</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> n </span><span class="" style="color: rgb(155, 35, 147);"><b class="">in</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(28, 0, 207);">0</span><span class="" style="color: rgb(108, 54, 169);">..<</span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">.</span><span class="" style="color: rgb(108, 54, 169);">count</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> {</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">    </span><span class="" style="color: rgb(155, 35, 147);"><b class="">if</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> (</span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">[n] </span><span class="" style="color: rgb(108, 54, 169);"><</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>largest<span class="" style="color: rgba(0, 0, 0, 0.85);">) {</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">        </span>smallest<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">[n]</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">        </span>smallestPosition<span class="" style="color: rgba(0, 0, 0, 0.85);"> = n</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">}</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(108, 54, 169);">print</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>"Output #4 - Smallest is <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">smallest</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span> in position <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">smallestPosition</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span>"<span class="" style="color: rgba(0, 0, 0, 0.85);">)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// working on Output #5</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span> <span class="" style="color: rgb(15, 104, 160);">repeats</span> = [<span class="" style="color: rgb(57, 0, 160);">Int</span>]()</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>repeatsTotalCount<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(28, 0, 207);">0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>alreadyFoundThese<span class="" style="color: rgba(0, 0, 0, 0.85);"> = [</span><span class="" style="color: rgb(57, 0, 160);">Int</span><span class="" style="color: rgba(0, 0, 0, 0.85);">]()</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">for</b></span> lookingFor <span class="" style="color: rgb(155, 35, 147);"><b class="">in</b></span> <span class="" style="color: rgb(50, 109, 116);">inputInts</span> {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    <span class="" style="color: rgb(155, 35, 147);"><b class="">if</b></span> (<span class="" style="color: rgb(50, 109, 116);">alreadyFoundThese</span>.<span class="" style="color: rgb(108, 54, 169);">contains</span>(lookingFor)) {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">        </span>// nothing to do if we've already found it once</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    } <span class="" style="color: rgb(155, 35, 147);"><b class="">else</b></span> {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        <span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span> count = <span class="" style="color: rgb(28, 0, 207);">0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        <span class="" style="color: rgb(155, 35, 147);"><b class="">for</b></span> thisPosition <span class="" style="color: rgb(155, 35, 147);"><b class="">in</b></span> <span class="" style="color: rgb(50, 109, 116);">inputInts</span> {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">            <span class="" style="color: rgb(155, 35, 147);"><b class="">if</b></span> (thisPosition <span class="" style="color: rgb(108, 54, 169);">==</span> lookingFor) {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">                count <span class="" style="color: rgb(108, 54, 169);">+=</span> <span class="" style="color: rgb(28, 0, 207);">1</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">            }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        <span class="" style="color: rgb(155, 35, 147);"><b class="">if</b></span> (count <span class="" style="color: rgb(108, 54, 169);">></span> <span class="" style="color: rgb(28, 0, 207);">1</span>) {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">            <span class="" style="color: rgb(155, 35, 147);"><b class="">for</b></span> <span class="" style="color: rgb(155, 35, 147);"><b class="">_</b></span> <span class="" style="color: rgb(155, 35, 147);"><b class="">in</b></span> <span class="" style="color: rgb(28, 0, 207);">0</span><span class="" style="color: rgb(108, 54, 169);">..<</span>count {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">                <span class="" style="color: rgb(50, 109, 116);">repeats</span>.<span class="" style="color: rgb(108, 54, 169);">append</span>(lookingFor)</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">                <span class="" style="color: rgb(50, 109, 116);">repeatsTotalCount</span> <span class="" style="color: rgb(108, 54, 169);">+=</span> <span class="" style="color: rgb(28, 0, 207);">1</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">            }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        <span class="" style="color: rgb(50, 109, 116);">alreadyFoundThese</span>.<span class="" style="color: rgb(108, 54, 169);">append</span>(lookingFor)</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">}</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(108, 54, 169);">print</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>"Output #5 - Number of repeats: <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">repeatsTotalCount</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span> consisting of: <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">repeats</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span>"<span class="" style="color: rgba(0, 0, 0, 0.85);">)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// working on Output #6</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// Ok the idea of laying down the two input numbers as a line of bits, end to end, then treating the pile of bits as another format by grouping them in a differen way is very cool .. but I had to google this one like crazy !!</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);">inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">[</span><span class="" style="color: rgb(28, 0, 207);">0</span><span class="" style="color: rgba(0, 0, 0, 0.85);">]</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">let</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(15, 104, 160);">firstInt</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(57, 0, 160);">Int8</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">[</span><span class="" style="color: rgb(28, 0, 207);">0</span><span class="" style="color: rgba(0, 0, 0, 0.85);">])</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">let</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>secondInt<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(57, 0, 160);">Int8</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span><span class="" style="color: rgb(50, 109, 116);">inputInts</span><span class="" style="color: rgba(0, 0, 0, 0.85);">[</span><span class="" style="color: rgb(28, 0, 207);">1</span><span class="" style="color: rgba(0, 0, 0, 0.85);">])</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">let</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>loopValues<span class="" style="color: rgba(0, 0, 0, 0.85);"> = [</span><span class="" style="color: rgb(28, 0, 207);">1</span><span class="" style="color: rgba(0, 0, 0, 0.85);">,</span><span class="" style="color: rgb(28, 0, 207);">0</span><span class="" style="color: rgba(0, 0, 0, 0.85);">]</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">func</b></span> <span class="" style="color: rgb(15, 104, 160);">load16</span>(incomingArray: [<span class="" style="color: rgb(57, 0, 160);">UInt8</span>]) -> <span class="" style="color: rgb(57, 0, 160);">UInt16</span>{</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    <span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span> u: <span class="" style="color: rgb(57, 0, 160);">UInt16</span> = <span class="" style="color: rgb(28, 0, 207);">0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    <span class="" style="color: rgb(155, 35, 147);"><b class="">for</b></span> index <span class="" style="color: rgb(155, 35, 147);"><b class="">in</b></span> <span class="" style="color: rgb(50, 109, 116);">loopValues</span> {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        u = u <span class="" style="color: rgb(108, 54, 169);"><<</span> <span class="" style="color: rgb(28, 0, 207);">8</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        <span class="" style="color: rgb(108, 54, 169);">print</span> (u)</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        u = u <span class="" style="color: rgb(108, 54, 169);">|</span> <span class="" style="color: rgb(57, 0, 160);">UInt16</span>(incomingArray[index])</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        <span class="" style="color: rgb(108, 54, 169);">print</span> (u)</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    <span class="" style="color: rgb(155, 35, 147);"><b class="">return</b></span> u</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">}</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(15, 104, 160);">intsToCombine</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> = [</span><span class="" style="color: rgb(57, 0, 160);">UInt8</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">[</span><span class="" style="color: rgb(28, 0, 207);">1</span><span class="" style="color: rgba(0, 0, 0, 0.85);">]),</span><span class="" style="color: rgb(57, 0, 160);">UInt8</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>inputInts<span class="" style="color: rgba(0, 0, 0, 0.85);">[</span><span class="" style="color: rgb(28, 0, 207);">0</span><span class="" style="color: rgba(0, 0, 0, 0.85);">])]</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span> <span class="" style="color: rgb(15, 104, 160);">resultInt16</span> = <span class="" style="color: rgb(50, 109, 116);">load16</span>(incomingArray: <span class="" style="color: rgb(50, 109, 116);">intsToCombine</span>)</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(108, 54, 169);">print</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>"Output #6 - New number is: <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">resultInt16</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span>"<span class="" style="color: rgba(0, 0, 0, 0.85);">)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// working on Output #7</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>sortArray<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(50, 109, 116);">inputInts</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>neededToSwapStuff<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(28, 0, 207);">1</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">var</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span>totalSortActions<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(28, 0, 207);">0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(155, 35, 147);"><b class="">while</b></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> (</span>neededToSwapStuff<span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(108, 54, 169);">></span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(28, 0, 207);">0</span><span class="" style="color: rgba(0, 0, 0, 0.85);">) {</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">    </span>neededToSwapStuff<span class="" style="color: rgba(0, 0, 0, 0.85);"> = </span><span class="" style="color: rgb(28, 0, 207);">0</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    <span class="" style="color: rgb(155, 35, 147);"><b class="">for</b></span> number <span class="" style="color: rgb(155, 35, 147);"><b class="">in</b></span> <span class="" style="color: rgb(28, 0, 207);">0</span><span class="" style="color: rgb(108, 54, 169);">..<</span>(<span class="" style="color: rgb(50, 109, 116);">sortArray</span>.<span class="" style="color: rgb(108, 54, 169);">count-</span><span class="" style="color: rgb(28, 0, 207);">1</span>) {</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        <span class="" style="color: rgb(155, 35, 147);"><b class="">if</b></span> (<span class="" style="color: rgb(50, 109, 116);">sortArray</span>[number] <span class="" style="color: rgb(108, 54, 169);">></span> <span class="" style="color: rgb(50, 109, 116);">sortArray</span>[number<span class="" style="color: rgb(108, 54, 169);">+</span><span class="" style="color: rgb(28, 0, 207);">1</span>]){</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">            </span>neededToSwapStuff<span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(108, 54, 169);">+=</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(28, 0, 207);">1</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(50, 109, 116); background-color: rgb(255, 255, 255);"><span class="" style="color: rgba(0, 0, 0, 0.85);">            </span>totalSortActions<span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(108, 54, 169);">+=</span><span class="" style="color: rgba(0, 0, 0, 0.85);"> </span><span class="" style="color: rgb(28, 0, 207);">1</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">            <span class="" style="color: rgb(155, 35, 147);"><b class="">let</b></span> numberBeingMoved = <span class="" style="color: rgb(50, 109, 116);">sortArray</span>[number]</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">            <span class="" style="color: rgb(50, 109, 116);">sortArray</span>[number] = <span class="" style="color: rgb(50, 109, 116);">sortArray</span>[number<span class="" style="color: rgb(108, 54, 169);">+</span><span class="" style="color: rgb(28, 0, 207);">1</span>]</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">            <span class="" style="color: rgb(50, 109, 116);">sortArray</span>[number<span class="" style="color: rgb(108, 54, 169);">+</span><span class="" style="color: rgb(28, 0, 207);">1</span>] = numberBeingMoved</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">        }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">    }</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);">}</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);"><span class="" style="color: rgb(108, 54, 169);">print</span><span class="" style="color: rgba(0, 0, 0, 0.85);">(</span>"Output #7 - Input 'ints' were sorted to <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">sortArray</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span> in: <span class="" style="color: rgba(0, 0, 0, 0.85);">\(</span><span class="" style="color: rgb(50, 109, 116);">totalSortActions</span><span class="" style="color: rgba(0, 0, 0, 0.85);">)</span> actions"<span class="" style="color: rgba(0, 0, 0, 0.85);">)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// working on Output #8</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// the 11th value (118) was missing from the sorted sring in the coding_challenge1 file .. made this very interesting</div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);">// still stuck here .. thinking the 11th value was omitted and should be in the set for full comprehension as 118 corresponds to the lower case 'v' in ascii.</div></div></div></body></html>