------_extPart_001_01C73E3D.66C4EC38
Content-Type: text/plain;
	charsets-ascii"
Content-Transfer-Encoding: quoted-printable

Oh boy, this is my first submission to the Ruby Quiz. My solution is
fairly naive, but it passes all the tests and it's pretty clean, so I'm
happy.

- donald

------_extPart_001_01C73E3D.66C4EC38
Content-Type: application/octet-stream;
	name
uto_complete2.rb"
Content-Transfer-Encoding: base64
Content-Description: auto_complete2.rb
Content-Disposition: attachment;
	filename
uto_complete2.rb"

IyFjOlxydWJ5XGJpblxydWJ5LmV4ZQ0KIw0KIyBJbXBsZW1lbnRzIGF1dG8gY29tcGxldGUgZm9y
IGFiYnJldmlhdGVkIG1ldGhvZHMNCiMNCiMgUnVieSBRdWl6IDExMA0KIw0KIyBEb25hbGQgQmFs
bCAyMDA3LTAxLTE5DQoNCnJlcXVpcmUgJ3NldCcNCg0KbW9kdWxlIEF1dG9Db21wbGV0ZQ0KICBt
b2R1bGUgQ2xhc3NNZXRob2RzDQogICAgYXR0cl9yZWFkZXIgOmFiYnJzDQogICAgZGVmIGFiYnJl
digqYXJncykNCiAgICAgICMgVE9ETyBhYmJycyBtaWdodCBiZSBiZXR0ZXIgaW1wbGVtZW50ZWQg
YXMgYSBzb3J0ZWQgc2V0DQogICAgICBAYWJicnMgfHw9IFNldC5uZXcNCiAgICAgIEBhYmJycyAr
PSBhcmdzDQogICAgZW5kDQogIGVuZA0KICBtb2R1bGUgT2JqZWN0TWV0aG9kcw0KICAgIGRlZiBt
ZXRob2RfbWlzc2luZyhpZCwgKmFyZ3MpDQogICAgICAjIGlmIGl0IGlzIGFuIGV4YWN0IG1hdGNo
LCB0aGVyZSBpcyBubyBjb3JyZXNwb25kaW5nIG1ldGhvZCBvciBlbHNlIGl0IHdvdWxkIGhhdmUg
YmVlbiBjYWxsZWQNCiAgICAgIGlmIHNlbGYuY2xhc3MuYWJicnMuaW5jbHVkZT8oaWQpDQogICAg
ICAgIHN1cGVyDQogICAgICBlbmQNCiAgICAgIHMgPSBpZC50b19zDQogICAg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