Re: Another Chris Pine Tutorial Question



On 30.08.2008 22:55, danielj wrote:
However, it asks you to then do this:

• Try writing the above program without using the sort method. A large
part of programming is solving problems, so get all the practice you
can!

Could somebody point me in the right direction, or give me an example
of how that would be possible? I'm racking my brain but I can not
think of a way to do it without using methods and tools that you are
not yet supposed to use at this point in the tutorial (i.e. regex)

The trick I assume Chris is targeting at is to insert words at the correct position. That way your list is always sorted and you do not need an explicit sort operation.

Kind regards

robert

.



Relevant Pages

  • Re: Shuffle algorithm
    ... ListView already has a sort method doesn't it? ... there a reason you're writing your own sort method? ... > Does anyone know a good/fast shuffle algorithm to shuffle a array? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sorting Arraylist
    ... > Fortunately, the Sort method on ArrayList is just what the OP wants, I ... however the OP is writing an Arraylist of objects. ... When you search on MSDN ... Cor ...
    (microsoft.public.dotnet.languages.csharp)