---Raul Miller wrote:
> Does efficiency matter here?
>
> If so, what's the goal of that efficiency?

I like to understand what operations/approaches are most efficient so that when 
it does count I can take advantage of that knowledge.

For me "good" code is not resource intensive:
  * doesn't take long to write
  * doesn't take long to read
  * doesn't take long to run
  * doesn't require much space to run
  * generalises to many cases

The best compromise of the above features will depend on the specific problem.
The first two are hard to measure and probably depend to a certain extent on 
the reader/writer.

> (I decided to use a boxed list of strings instead
> of a list of characters because I would have
> generalized this problem by adding more complicated
> data -- as opposed to going for longer strings of
> characters.)

Your solution may well handle more general cases. The person who set the 
problem will best know how important that might be.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to