<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/progress/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    
    <link href="http://judebert.com/progress/feeds/atom10.xml" rel="self" title="Judebert.com" type="application/atom+xml" />
    <link href="http://judebert.com/progress/"                        rel="alternate"    title="Judebert.com" type="text/html" />
    <link href="http://judebert.com/progress/rss.php?version=2.0"     rel="alternate"    title="Judebert.com" type="application/rss+xml" />
    <title type="html">Judebert.com</title>
    <subtitle type="html">Progress Report</subtitle>
    <icon>http://www.judebert.com/progress/judebert.gif</icon>
    <id>http://judebert.com/progress/</id>
    <updated>2013-06-08T19:00:01Z</updated>
    <generator uri="http://www.s9y.org/" version="1.6.2">Serendipity 1.6.2 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:judebert@judebert.com" />

    <entry>
        <link href="http://judebert.com/progress/archives/459-Just-One-More-Thing-Before-I-Go.html" rel="alternate" title="Just One More Thing Before I Go" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-06-08T18:46:31Z</published>
        <updated>2013-06-08T19:00:01Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=459</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=459</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/36-Activities" label="Activities" term="Activities" />
    
        <id>http://judebert.com/progress/archives/459-guid.html</id>
        <title type="html">Just One More Thing Before I Go</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <div class="serendipity_imageComment_left" style="width: 160px"><div class="serendipity_imageComment_img"><a  class="serendipity_image_link"   rel='lightbox[lightbox_group_entry_459]' href='http://judebert.com/progress/media/photos/2013/CannonJr-big.jpg'><!-- s9ymdb:1255 --><img class="serendipity_image_left" width="160" height="96"  src="http://judebert.com/progress/media/photos/2013/CannonJr-big.s9yThumb.jpg"  alt="" /></a></div><div class="serendipity_imageComment_txt">For the Kindergarteners.</div></div>
<p><b>What is wrong with me?</b>  Can I not even <i>visit</i> Florida without <a href="http://judebert.com/progress/permalink/swingset.html">building something</a>?
</p><p>
This one is meant for a Kindergarten drama class.  It's the little brother of the <a href="http://judebert.com/progress/permalink/cannon-rebuild.html">air cannon I built for Hairspray</a>.  Got another free tire inflation valve from the guys at Tire Kingdom, and $15 of parts from the sprinkler place down the street (wouldn't want <a href="http://judebert.com/progress/permalink/confetti-cannon.html">the fittings exploding like last time</a>), with another $15 in valve and pipe from Lowe's: the sprinkler place didn't sell pipe in less than 20-foot lengths, and they didn't have a valve that a Kindergartener could turn.
</p><p>
This time, Tatiana helped me build it.  She is... liberal with the blue goo.  <img src="http://judebert.com/progress/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" />  Wondering about the stubby little side?  We tried to start with the short connector for the cannon, but we didn't twist it correctly, so the cannon wouldn't have been levered upwards.  So we made it the endcap instead, shortening the whole thing a bit.  
</p><p>
Hey, life is all about compromise.  This was a huge success, especially considering that it's going to be used by kids: they don't need such a big compression chamber.  And we figured out how to use the detachable valve end to create an infinitely-adjustable cannon angle for the next time.
</p><p>
Of course!
</p> 
            </div>
        </content>
        <dc:subject>alpha geek</dc:subject>
<dc:subject>making</dc:subject>

    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/458-My-Hobby-Built-in-Irony.html" rel="alternate" title="My Hobby: Built-in Irony" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-05-04T18:42:00Z</published>
        <updated>2013-05-04T18:42:00Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=458</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=458</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/38-Madness" label="Madness" term="Madness" />
    
        <id>http://judebert.com/progress/archives/458-guid.html</id>
        <title type="html">My Hobby: Built-in Irony</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <div class="serendipity_imageComment_left" style="width: 160px"><div class="serendipity_imageComment_img"><a  class="serendipity_image_link"   rel='lightbox[lightbox_group_entry_458]' href='http://judebert.com/progress/media/photos/2013/Bookstore-haul-2013-05-04-big.jpg'><!-- s9ymdb:1254 --><img class="serendipity_image_left" width="160" height="96"  src="http://judebert.com/progress/media/photos/2013/Bookstore-haul-2013-05-04-big.s9yThumb.jpg"  alt="" /></a></div><div class="serendipity_imageComment_txt">More than $40 worth</div></div>
<p>So, everyone is aware that I work for Amazon now, right?  I'm coding in the Kindle division.
</p><p>
So what do I the first free weekend I get in Seattle?  That's right, I go hit <b>all four</b> used bookstores in the Pike Place area and spend <i>all</i> my free money on books.
</p><p>
Still, it's a nice haul.  Plus, I'll finally get to see what this "Earthsea" stuff is all about.
</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/457-Holy-Well-Timed-Exit-Strategy,-Batman!.html" rel="alternate" title="Holy Well-Timed Exit Strategy, Batman!" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-04-18T14:18:05Z</published>
        <updated>2013-04-19T13:40:05Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=457</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=457</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/41-News" label="News" term="News" />
    
        <id>http://judebert.com/progress/archives/457-guid.html</id>
        <title type="html">Holy Well-Timed Exit Strategy, Batman!</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <div class="serendipity_imageComment_left" style="width: 96px"><div class="serendipity_imageComment_img"><a  class="serendipity_image_link"   rel='lightbox[lightbox_group_entry_457]' href='http://judebert.com/progress/media/photos/2013/Seattle/space-needle-01-big.jpg'><!-- s9ymdb:1251 --><img class="serendipity_image_left" width="96" height="160"  src="http://judebert.com/progress/media/photos/2013/Seattle/space-needle-01-big.s9yThumb.jpg"  alt="" /></a></div><div class="serendipity_imageComment_txt">Not a model</div></div>
<p>
I've recently accepted a job in Seattle.  There is no better time for me to move: the kids are all the correct ages to change schools along with a bunch of other new students.  Sequestration hit the government simulation industry the day after I left: the project had to arrange for furloughs.  (The title is what my wife said when she heard about the furloughs.  She's awesome.)  The housing market is starting to look up in Florida, so my house might sell easily.
</p><p>
My wife is staying behind with the kids to sell the house and finish out the school year.  I miss them, so I've been taking a few pictures of Seattle as I walk to work.  
</p><p>
Neatest thing?  My walk takes me right past the Space Needle!
</p> <br /><a href="http://judebert.com/progress/archives/457-Holy-Well-Timed-Exit-Strategy,-Batman!.html#extended">Continue reading "Holy Well-Timed Exit Strategy, Batman!"</a>
            </div>
        </content>
        <dc:subject>seattle</dc:subject>

    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/456-Just-One-Thing-Before-I-Go.html" rel="alternate" title="Just One Thing Before I Go" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-04-18T13:55:08Z</published>
        <updated>2013-04-18T14:17:56Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=456</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=456</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/36-Activities" label="Activities" term="Activities" />
    
        <id>http://judebert.com/progress/archives/456-guid.html</id>
        <title type="html">Just One Thing Before I Go</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <div class="serendipity_imageComment_left" style="width: 160px"><div class="serendipity_imageComment_img"><a  class="serendipity_image_link"   rel='lightbox[lightbox_group_entry_456]' href='http://judebert.com/progress/media/photos/2013/Seattle/playground-01-big.jpg'><!-- s9ymdb:1244 --><img class="serendipity_image_left" width="160" height="96"  src="http://judebert.com/progress/media/photos/2013/Seattle/playground-01-big.s9yThumb.jpg"  alt="" /></a></div><div class="serendipity_imageComment_txt">What could this be?</div></div>
<p>
I resigned on Wednesday.  I was scheduled to fly on Saturday.  That gave me two days to relax... or to leave behind something valuable for people I love.
</p><p>
One of our family friends has an autistic child.  He loves to swing, but they can't afford a swingset.  We were going to give them ours, but it's more than ten years old, and when we tried to pull it up, we discovered that it had become one with the ground.  (We'll have to figure out some way to get that down to the dump.)
</p><p>
But the plastic slide, two-person glider, and rings were still in good condition.  All they needed was a framework to hang on.  I estimated $50 in wood and offered to build it.
</p> <br /><a href="http://judebert.com/progress/archives/456-Just-One-Thing-Before-I-Go.html#extended">Continue reading "Just One Thing Before I Go"</a>
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/455-Silent-E-for-Sale.html" rel="alternate" title="Silent E for Sale" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-03-20T18:47:38Z</published>
        <updated>2013-03-20T21:00:45Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=455</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=455</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/26-EV" label="EV" term="EV" />
    
        <id>http://judebert.com/progress/archives/455-guid.html</id>
        <title type="html">Silent E for Sale</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <div class="serendipity_imageComment_left" style="width: 160px"><div class="serendipity_imageComment_img"><a  class="serendipity_image_link"   rel='lightbox[lightbox_group_entry_455]' href='http://judebert.com/progress/media/EV/Front-big.jpg'><img class="serendipity_image_left" width="160" height="96"  src="http://judebert.com/progress/media/EV/Front.s9yThumb.jpg"  alt="" /></a></div><div class="serendipity_imageComment_txt">For Sale: $5000</div></div>
<p>
Would you like to buy an 'O'?  Round, and neat: a nearly perfect circle, tidy and complete...
</p><p>
Seriously, I'm selling my EV.  I'm moving, and I don't have the time to fix it up and take it with me.
</p><p>
<a href="http://judebert.com/progress/EV/EV.html">The entire saga of Silent E's rise and fall</a> are detailed on this very site.  It's cost me more than $9000 to make, with around $7000 dollars of good parts in it.  Not to mention a new paint job.  I'm asking $5000.
</p><p>
More details?  Sure, read on.
</p><p> <br /><a href="http://judebert.com/progress/archives/455-Silent-E-for-Sale.html#extended">Continue reading "Silent E for Sale"</a>
            </div>
        </content>
        <dc:subject>batteries</dc:subject>
<dc:subject>cars</dc:subject>
<dc:subject>electric vehicles</dc:subject>
<dc:subject>ev</dc:subject>

    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/454-23rd-Anniversary-PVC!.html" rel="alternate" title="23rd Anniversary?  PVC!" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-03-08T21:06:23Z</published>
        <updated>2013-03-08T21:06:23Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=454</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=454</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/36-Activities" label="Activities" term="Activities" />
    
        <id>http://judebert.com/progress/archives/454-guid.html</id>
        <title type="html">23rd Anniversary?  PVC!</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <div class="serendipity_imageComment_left" style="width: 160px"><div class="serendipity_imageComment_img"><!-- s9ymdb:1218 --><img class="serendipity_image_left" width="160" height="96"  src="http://judebert.com/progress/media/photos/2013/cannon-salvage.s9yThumb.jpg" title="Cut down to size" alt="" /></div><div class="serendipity_imageComment_txt">Cut down to size</div></div>
<div class="serendipity_imageComment_left" style="width: 160px"><div class="serendipity_imageComment_img"><!-- s9ymdb:1219 --><img class="serendipity_image_left" width="160" height="96"  src="http://judebert.com/progress/media/photos/2013/cannon-zombie.s9yThumb.jpg" title="Beautiful model showing off the finished project" alt="" /></div><div class="serendipity_imageComment_txt">Beautiful model showing off the finished project</div></div>
<p>
Gotta love mitre saws.  Chopped the crappy fixtures off that old cannon in no time at all.  Then I bought <em>actual</em> Schedule-40 fittings from the sprinkler shop down the straight.  Cost an extra $5, but it's worth it for the safety.
</p><p>
Then, since it was our anniversary, Eri helped me put it all together.  We used the high-pressure "blue glue" and made certain to twist at least 90 degrees as we inserted everything.  We also redesigned it to use fewer fittings, which made the twisting phase a lot easier.
</p><p>
Working together, and being extremely careful, it took us about two hours all told.  We left it in the sun, and after about 5 hours of curing, I'll try it at tonight's performance of Hairspray!
</p> 
            </div>
        </content>
        <dc:subject>alpha geek</dc:subject>
<dc:subject>science</dc:subject>

    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/453-My-Creation-Lives!-And-Dies..html" rel="alternate" title="My Creation Lives!  And Dies." />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-03-07T22:31:16Z</published>
        <updated>2013-03-07T22:55:42Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=453</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=453</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/36-Activities" label="Activities" term="Activities" />
    
        <id>http://judebert.com/progress/archives/453-guid.html</id>
        <title type="html">My Creation Lives!  And Dies.</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <div class="serendipity_imageComment_left" style="width: 160px"><div class="serendipity_imageComment_img"><!-- s9ymdb:1211 --><img class="serendipity_image_left" width="160" height="96"  src="http://judebert.com/progress/media/photos/2013/cannon-parts.s9yThumb.jpg" title="You know." alt="An air cannon." /></div><div class="serendipity_imageComment_txt">What could it be?</div></div>
<p>
What's this collection of PVC parts?  Here's a hint: I used it when I played Wilbur in Hairspray.  The other actors kept calling me a "real-life Wilbur".
</p> <br /><a href="http://judebert.com/progress/archives/453-My-Creation-Lives!-And-Dies..html#extended">Continue reading "My Creation Lives!  And Dies."</a>
            </div>
        </content>
        <dc:subject>alpha geek</dc:subject>
<dc:subject>science</dc:subject>

    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/452-Happy-Valentines-Day.html" rel="alternate" title="Happy Valentine's Day" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-02-14T05:00:00Z</published>
        <updated>2013-02-14T18:51:21Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=452</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=452</wfw:commentRss>
    
    
        <id>http://judebert.com/progress/archives/452-guid.html</id>
        <title type="html">Happy Valentine's Day</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
Infuriating!<br/>
Your desires are not my own.<br/>
Somehow, I'm fulfilled.<br/>
</p><p>
Intolerable!<br/>
When I hurt you, I feel pain.<br/>
What was I thinking?<br/>
</p><p>
Inconceivable!<br/>
I search for twenty-three years.<br/>
I discover more.<br/>
</p><p>
I love you, Eri.<br/>
I strive for your happiness.<br/>
Be my valentine.<br/>
</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/451-Yes,-Thats-More-Like-It.html" rel="alternate" title="Yes, That's More Like It" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-02-07T17:27:01Z</published>
        <updated>2013-02-07T17:27:01Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=451</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=451</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/37-Web-Activities" label="Web Activities" term="Web Activities" />
    
        <id>http://judebert.com/progress/archives/451-guid.html</id>
        <title type="html">Yes, That's More Like It</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
<a href="http://www.empiricalzeal.com/2012/10/12/can-we-build-a-more-efficient-airplane-not-really-says-physics/">Why airplanes REALLY fly.</a>
</p><p>
Sorry to make a whole article with little more than a link, but, really, my kids need to read this.  And this seems like the easiest way to remember.
</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/450-Interview-Day-8-Planes-and-Cycles.html" rel="alternate" title="Interview Day 8: Planes and Cycles" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-01-22T23:49:00Z</published>
        <updated>2013-01-22T23:58:55Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=450</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=450</wfw:commentRss>
    
    
        <id>http://judebert.com/progress/archives/450-guid.html</id>
        <title type="html">Interview Day 8: Planes and Cycles</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
Nice break.  Time to get back with it; I'm running out of time, and I'm sure there's stuff I don't remember.  
</p><p>
I finish studying up linked lists from <i>Programming Interviews Exposed</i>.  Everything is pretty straightforward, but this last problem gets me: you're given a linked list; either the last node points to null (the list is normal, and <i>acyclic</i>), or the last node points to one of the earlier nodes in the list, in which case it has no end and is <i>cyclic</i>.  Write an algorithm to determine which.  
</p><p>
I progressed very quickly to the obvious answer: visit each node, and check whether it points to any of the earlier nodes in the list.  No extra storage required, but it's O(n^2).  
</p><p>
The answer, it turns out, I never would have gotten by myself: visit all the nodes at different rates.  Have a slow pointer advancing one node at a time, and a fast pointer advancing two nodes at a time; if the fast pointer reaches an end, you're done, and you've only visited 1.5 times the nodes, which is O(n).  If the fast pointer ever reaches the slow pointer, you've discovered a cycle visiting only 3 times the nodes... which is O(n).  Of course, the author made an error that could result in a null pointer exception, and might accidentally skip the slow pointer the first time around, but those were easy to identify and rectify.  
</p><p>
The brain teaser, <a href="http://www.techinterview.org/post/487221758/crazy-guy-on-the-airplane">Crazy Guy on the Airplane from techinterview</a>, actually hammered home a rule of problem solving.
</p><p>
There are 100 passengers, numbered 1 through 100, boarding an airplane with 100 seats, also numbered 1 through 100.  They'll be boarding in numerical order, and they'll sit in their numbered seat if it's available; otherwise they'll sit in a random available seat.
</p><p>
Problem is, passenger #1 is crazy.  He randomly picks a seat, regardless of whether his seat is available.
</p><p>
What's the probability that passenger #100 will get to sit in his own seat?
</p> <br /><a href="http://judebert.com/progress/archives/450-Interview-Day-8-Planes-and-Cycles.html#extended">Continue reading "Interview Day 8: Planes and Cycles"</a>
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/449-Interview-Day-7-Palindrome-Brain-Teaser.html" rel="alternate" title="Interview Day 7: Palindrome Brain Teaser" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-01-21T22:12:04Z</published>
        <updated>2013-01-21T22:12:04Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=449</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=449</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/36-Activities" label="Activities" term="Activities" />
    
        <id>http://judebert.com/progress/archives/449-guid.html</id>
        <title type="html">Interview Day 7: Palindrome Brain Teaser</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
After so much coding, I decided to take it easy with a brain teaser.  <a href="http://www.techinterview.org/post/526332105/palindromes">I liked this techinterview palindrome puzzle.</a>  October 21, 2001 was a palindromic date, when written in MMDDYYYY format.  What was the latest palindromic date previous to that?
</p> <br /><a href="http://judebert.com/progress/archives/449-Interview-Day-7-Palindrome-Brain-Teaser.html#extended">Continue reading "Interview Day 7: Palindrome Brain Teaser"</a>
            </div>
        </content>
        <dc:subject>interview</dc:subject>

    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/448-Interview-Day-6-Unflattening-a-Bush.html" rel="alternate" title="Interview Day 6: Unflattening a Bush" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-01-20T21:41:00Z</published>
        <updated>2013-01-21T22:11:54Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=448</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=448</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/36-Activities" label="Activities" term="Activities" />
            <category scheme="http://judebert.com/progress/categories/44-Programming" label="Programming" term="Programming" />
            <category scheme="http://judebert.com/progress/categories/49-The-Attic" label="The Attic" term="The Attic" />
            <category scheme="http://judebert.com/progress/categories/37-Web-Activities" label="Web Activities" term="Web Activities" />
    
        <id>http://judebert.com/progress/archives/448-guid.html</id>
        <title type="html">Interview Day 6: Unflattening a Bush</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
Oh, great.  Yesterday I flattened a bush; today you want me to <b>un-</b>flatten it?
</p><p>
This is going to require a bit of recursion, I can just tell.  That's fine, I love recursion.
</p><p>
I kept all the child pointers when I flattened the bush, so that will tell me where the children start.  I'll just traverse the list, and anytime I find a child pointer, I'll disconnect the child and all its siblings, reconnecting them as the child of the parent.
</p><p>
Hmmm.  Only one small problem: how will I know when to stop disconnecting the child?  The first parent that I encounter will get the child, and the remainder of the list afterwards, as its children.  
</p><p>
Maybe I'd better rewrite Flatten to use a different algorithm.  Certainly the interviewer would have steered me toward a solution with recognizable ends.  Wouldn't he?
</p> <br /><a href="http://judebert.com/progress/archives/448-Interview-Day-6-Unflattening-a-Bush.html#extended">Continue reading "Interview Day 6: Unflattening a Bush"</a>
            </div>
        </content>
        <dc:subject>alpha geek</dc:subject>
<dc:subject>interview</dc:subject>
<dc:subject>java</dc:subject>
<dc:subject>programming</dc:subject>

    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/447-Interview-Day-5-Flattening-a-Bush.html" rel="alternate" title="Interview Day 5: Flattening a Bush" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-01-19T02:42:26Z</published>
        <updated>2013-01-21T21:41:52Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=447</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=447</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/44-Programming" label="Programming" term="Programming" />
            <category scheme="http://judebert.com/progress/categories/49-The-Attic" label="The Attic" term="The Attic" />
            <category scheme="http://judebert.com/progress/categories/37-Web-Activities" label="Web Activities" term="Web Activities" />
    
        <id>http://judebert.com/progress/archives/447-guid.html</id>
        <title type="html">Interview Day 5: Flattening a Bush</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
Yesterday I made a linked list, in Java.  Yeah, that's right.  
</p><p>
Today I'm taking on a programming problem: given a doubly-linked list (with head and tail), where any element may have a child doubly-linked list (without head and tail), flatten the structure into a doubly-linked list.
</p><p>
That sounds vaguely tree-like, but trees don't usually have linked siblings.  It's all just parents and children. I'm calling this a bush.
</p><p>
Let's look at the structure.
</p><pre>
head->A<=>D<=>E<=>F<-tail
      |           |
      B<=>C       G
                  |
                  H

</pre><p>
Without being told where to put stuff, I could just tack it all on the tail.  But I think tacking it on after its parent is more elegant, if it can be implemented in similar complexity and space.  In the bush I drew, I'd like the nodes to end up in alphabetical order.
</p><p>
I might even be able to do this without recursion.
</p> <br /><a href="http://judebert.com/progress/archives/447-Interview-Day-5-Flattening-a-Bush.html#extended">Continue reading "Interview Day 5: Flattening a Bush"</a>
            </div>
        </content>
        <dc:subject>alpha geek</dc:subject>
<dc:subject>interview</dc:subject>
<dc:subject>java</dc:subject>
<dc:subject>programming</dc:subject>

    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/446-Interview-Prep-Day-4-Linked-Lists.html" rel="alternate" title="Interview Prep Day 4: Linked Lists" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-01-18T11:32:31Z</published>
        <updated>2013-01-19T02:42:22Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=446</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=446</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/44-Programming" label="Programming" term="Programming" />
            <category scheme="http://judebert.com/progress/categories/49-The-Attic" label="The Attic" term="The Attic" />
    
        <id>http://judebert.com/progress/archives/446-guid.html</id>
        <title type="html">Interview Prep Day 4: Linked Lists</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
I started my studying today by looking at <i>Programming Interviews Exposed</i>.  The author indicates that linked-list problems are common in coding interviews, because they can be solved relatively quickly, but they still expose the coder's thought processes.
</p><p>
As a Java programmer, I don't have much use for linked lists.  Java includes a LinkedList class that takes care of all the operations for me.  But according to the book, I might still be asked to implement a linked list of my own and solve some linked list problems... because it will expose my thought process.
</p><p>
Okay, I remember linked lists from back when I was a hot-shot C programmer.  (I used to think Java was a flash in a pan.  With the recent security vulnerabilities, it may turn out that way after all.)  I can do this.  But perhaps I should pass on the brain teaser for today.  The list problems can be my brain teaser.
</p><p>
Implement a singly-linked list.  Given a doubly-linked list (with tail pointer) where each node may have a doubly-linked list (without head or tail pointers) as a child, and the children may have their own children, flatten it to a plain doubly-linked list.  Now <i>put it back</i>.
</p> <br /><a href="http://judebert.com/progress/archives/446-Interview-Prep-Day-4-Linked-Lists.html#extended">Continue reading "Interview Prep Day 4: Linked Lists"</a>
            </div>
        </content>
        <dc:subject>alpha geek</dc:subject>
<dc:subject>howto</dc:subject>
<dc:subject>interview</dc:subject>
<dc:subject>programming</dc:subject>

    </entry>
    <entry>
        <link href="http://judebert.com/progress/archives/445-Interview-Prep-Day-3-Dynamic-Programming-and-Pirates!.html" rel="alternate" title="Interview Prep Day 3: Dynamic Programming and Pirates!" />
        <author>
            <name>Judebert</name>
            <email>judebert@judebert.com</email>        </author>
    
        <published>2013-01-17T11:02:00Z</published>
        <updated>2013-01-17T11:02:00Z</updated>
        <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=445</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://judebert.com/progress/rss.php?version=atom1.0&amp;type=comments&amp;cid=445</wfw:commentRss>
    
            <category scheme="http://judebert.com/progress/categories/36-Activities" label="Activities" term="Activities" />
            <category scheme="http://judebert.com/progress/categories/49-The-Attic" label="The Attic" term="The Attic" />
            <category scheme="http://judebert.com/progress/categories/37-Web-Activities" label="Web Activities" term="Web Activities" />
    
        <id>http://judebert.com/progress/archives/445-guid.html</id>
        <title type="html">Interview Prep Day 3: Dynamic Programming and Pirates!</title>
        <content type="xhtml" xml:base="http://judebert.com/progress/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
Today's studying involved "Dynamic Programming" and "Backtracking", which really turned out to be different names for little tricks I've used before in recursion.  I'm going to have to look at them again, just to make sure I've got it straight, in case I get asked.  I don't want to look like an idiot because I don't know something's name.
</p><p>
Especially if I use it all the time.
</p><p>
Anyway.  I know why you're really here: today I tried <a href="http://www.techinterview.org/post/526325766/pirates">a brainteaser from techinterview about pirates</a>. It ARRRR-ta be a lot of fun.
</p><p>
Five pirates have captured a booty of 100 gold pieces.  As you know, pirates use a seniority system when it comes to making decisions; in this case, the most senior pirate is pirate #5 and the least senior is pirate #1 (n00b).  
</p><p>
You also know, of course, that pirates are <b>greedy</b>.  And <b>bloodthirsty</b>.  What sets this group of pirates apart, though, is how intelligent they are.  
</p><p>
By which I mean that they're <i>really</i> smart (not noteworthy in the opposite direction).
</p><p>
Their method of dividing the 100 coins will be in keeping with pirate greed, violence, and seniority.  The most senior pirate will propose a division of booty.  <b>All</b> the pirates will vote to accept or reject the proposal.  If <b>at least 50%</b> approve, the booty is divided according to the proposal.  Otherwise, the propose-er walks the plank, and the <b>new</b> most senior pirate makes a new proposal.
</p><p>
Of course, having such massive brainpower, the most senior pirate makes a proposal that is automatically accepted.  What was it?
</p> <br /><a href="http://judebert.com/progress/archives/445-Interview-Prep-Day-3-Dynamic-Programming-and-Pirates!.html#extended">Continue reading "Interview Prep Day 3: Dynamic Programming and Pirates!"</a>
            </div>
        </content>
        <dc:subject>alpha geek</dc:subject>
<dc:subject>interview</dc:subject>

    </entry>

</feed>