Best one liner

Taketo Konno
Tokyo, Japan

Judges' comments:

To build:

make konno

To run:

./konno just_a_single_argument_of_lower_case_letters


./konno qwerty
./konno ioccc
./konno "the quick brown fox jumps over the lazy dog"

Selected Judges Remarks:

This tiny program outputs what looks like a tiny keyboard.
OK, so the letters are missing. But that is no problem because this program identifes the lower case letters that were pressed!

It is one of those minimal keyboards without all of those confusing symbols keys. No shift for SHOULDING CAPS but at least it does not have that useless caps lock key!

We recommend that you completely deconstruct / figure out how this program works and does what it does. Can you extend this program to deal with a full QWERTY keyboard? Can you then minimize the size of that code?

Author’s comments:


This program ignores non-lower case letters.


Creative Commons License

© Copyright 1984-2012, Leo Broukhis, Simon Cooper, Landon Curt Noll - All rights reserved
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.