{"id":226,"date":"2005-09-01T00:53:28","date_gmt":"2005-09-01T05:53:28","guid":{"rendered":"http:\/\/UnhinderedByTalent.com\/Phi\/?p=226"},"modified":"2005-09-01T00:54:43","modified_gmt":"2005-09-01T05:54:43","slug":"laid-low-by-a-single-equals-sign","status":"publish","type":"post","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/09\/01\/laid-low-by-a-single-equals-sign\/","title":{"rendered":"Laid low by a single equals sign"},"content":{"rendered":"<p><a href=\"http:\/\/www.flickr.com\/photos\/nicmcphee\/19997414\/\" title=\"Way out, man!\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/photos15.flickr.com\/19997414_7e1677995d_m.jpg?resize=240%2C180\" width=\"240\" height=\"180\" alt=\"Way out, man!\" align='right' hspace='10' vspace='10' data-recalc-dims=\"1\" \/><\/a><br \/>\nTonight was Round 3 of the <a href=\"http:\/\/www.topcoder.com\/tc?module=Static&#038;d1=tournaments&#038;d2=tco05&#038;d3=alg_description\">TopCoder Open<\/a>, and I came <em>this<\/em> close to making the top 100 to go on to Round 4, in fact missing it by a single equals sign&#8230;  As it is, I placed 138th, so I&#8217;m on my way out of this year&#8217;s Open, having gotten a round farther than I ever had before, which is very cool.<\/p>\n<p>The first problem wasn&#8217;t too bad, but the second problem was a complete bloodbath.  It wasn&#8217;t terribly hard (some fairly straightforward algebra), but there were quite a few tricky cases.  I submitted it in fairly reasonable time, but then went back to check it over because I was nervous about a problem with that many cases to sort out.  A good thing, too, because I did find a pair of cases that I&#8217;d overlooked.  I repaired those and resubmitted, and was pretty confident about my solution at that point.<\/p>\n<p>My confidence was misplaced, however, and I (and about half the known universe) was successfully challenged on that problem, which was a definite bummer.  <em>So<\/em> many people lost their second problem in the challenge and system test phases (less than a third survived), though, that I actually moved up from 155th to finally place 138th out of 191.  The stinker is that it turns out that the only mistake in my solution was a single equals sign.  Removing that, changing a less than or equal to a less than, fixed it.  If I had gotten that problem correct then I would have placed in the low 60&#8217;s, qualifying for Round 4 and earning a few more bucks.  Or if I&#8217;d been faster with a challenge and gotten 50 points for that I would have been in the 90&#8217;s and still qualifying.<\/p>\n<p>Sigh.<\/p>\n<p>All that said, there are no doubt <em>dozens<\/em> of people kicking themselves right now for little things, and in the end what counts is what you <em>do<\/em>, not what you could have done.<\/p>\n<p>Tonight was a great example of how incredibly careful and precise one has to be about the details in programming.  Programs tend to not fail gracefully &#8211; they either work or they don&#8217;t.  My program returned 100 on the test case in question when it should have return -1, and I can construct a (literally) <em>infinite<\/em> set of cases it will fail on, with the differences from the expected value being as large as you&#8217;d like.  It may have only been a single character, but it was still absolutely wrong and I (rightly) got no points for it.  And that&#8217;s big part of what I love about computing &#8211; it&#8217;s a kind of problem solving that requires both creativity and precision, and which has real consequences.<\/p>\n<p>I&#8217;d told <a href=\"http:\/\/UnhinderedByTalent.com\/WeatherGirl\/\">WeatherGirl<\/a> before I went off to compete that, on the assumption that I wasn&#8217;t going to make the top 100 and qualify for Round 4, I was hopingfor something like 150th; not too close to 200 to feel totally incompetent, but not so close to 100 that I&#8217;d kick myself for every little thing that might have been.  138 is pretty good, then, and I&#8217;ll just have to put that equals sign behind me :-).<\/p>\nNo tag for this post.\n\t<h4>Related posts<\/h4>\n\t<ul class=\"st-related-posts\">\n\t<li>No related posts.<\/li>\n\t<\/ul>\n\n","protected":false},"excerpt":{"rendered":"<p>Tonight was Round 3 of the TopCoder Open, and I came this close to making the top 100 to go on to Round 4, in fact missing it by a single equals sign&#8230; As it is, I placed 138th, so I&#8217;m on my way out of this year&#8217;s Open, having gotten a round farther than &hellip; <a href=\"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/09\/01\/laid-low-by-a-single-equals-sign\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Laid low by a single equals sign&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0},"categories":[4,11],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p90sy-3E","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[{"id":220,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/08\/24\/woot-on-to-tco-round-3\/","url_meta":{"origin":226,"position":0},"title":"Woot!  On to TCO Round 3!","author":"Nic McPhee","date":"24 Aug 05","format":false,"excerpt":"In a surprise bout of competence, mostly brought on by a fairly math-y set of problems and fairly good focus, I managed to be one of the 200 to advance to Round 3 of the Top Coder Open! Huzzah! I even placed third in my room, earning a whopping (but\u2026","rel":"","context":"In &quot;Computing&quot;","block_context":{"text":"Computing","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/computing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":653,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2007\/09\/19\/jocp-we-can-recycle-shiny-round-discs\/","url_meta":{"origin":226,"position":1},"title":"JOCP!  We can recycle shiny round discs!","author":"Nic McPhee","date":"19 Sep 07","format":false,"excerpt":"An e-mail from the fine folks at Brainwashed promoting an upcoming release included a link to CDRecyclingCenter.org. Apparently you can send these people you dead discs (and cases) free of charge (but you have to pay shipping) and they'll process them for recycling. They separate out the metals, yielding a\u2026","rel":"","context":"In &quot;Computing&quot;","block_context":{"text":"Computing","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/computing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":305,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2006\/01\/19\/links-for-2006-01-19\/","url_meta":{"origin":226,"position":2},"title":"links for 2006-01-19","author":"Nic McPhee","date":"19 Jan 06","format":false,"excerpt":"JUnit-addons A cool set of JUnit extensions with a nice set of utility methods and classes to check for correct implementation of methods such as equals and compareTo. (tags: java programming tdd test testing tools unittest junit) Scout: Find your photographs in Flickr's Explore A cool tool that searches through\u2026","rel":"","context":"In &quot;Daily links&quot;","block_context":{"text":"Daily links","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/daily-links\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":311,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2006\/02\/06\/daaaagstuuuuuhl\/","url_meta":{"origin":226,"position":3},"title":"Daaaagstuuuuuhl!","author":"Nic McPhee","date":"6 Feb 06","format":false,"excerpt":"I'm happy ensconced once again at the Schloss Dagstuhl International Conference Research Center for Computer Science in Germany for a week, and it's swell. The short version is that Dagstuhl is a 1700's manor house converted into a dedicated CSci research facility. They run a series of weekly workshops on\u2026","rel":"","context":"In &quot;Computing&quot;","block_context":{"text":"Computing","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/computing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":272,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/12\/22\/two-cool-new-cds-and-its-not-even-xmas-yet\/","url_meta":{"origin":226,"position":4},"title":"Two cool new CD&#8217;s, and it&#8217;s not even Xmas yet!","author":"Nic McPhee","date":"22 Dec 05","format":false,"excerpt":"The powers that be at ReR must have decided that their club members needed a little holidy goody a few days in advance of the 25th, and I got two albums today that I'd been heavily anticipating since I saw that they were in the pipeline: A 2 disc set\u2026","rel":"","context":"In &quot;Music&quot;","block_context":{"text":"Music","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/music\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":194,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/07\/09\/white-hands-for-those-in-london\/","url_meta":{"origin":226,"position":5},"title":"White hands for those in London","author":"Nic McPhee","date":"9 Jul 05","format":false,"excerpt":"After the devastating Madrid bombings a few years ago a number of people chose to respond by painting their hands white, a symbol which ...originated in Spain, when students in Madrid used it in 1996 as a sign of innocence and of their revulsion at the murder, by the ETA\u2026","rel":"","context":"In &quot;Photography&quot;","block_context":{"text":"Photography","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/photography\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/photos21.flickr.com\/24663125_e9aee5b141_m.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/posts\/226"}],"collection":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":0,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"wp:attachment":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}