POV-Ray : Newsgroups : povray.off-topic : Reflections on employment : Re: Reflections on employment Server Time
28 Jul 2024 20:20:58 EDT (-0400)
  Re: Reflections on employment  
From: Warp
Date: 2 Dec 2012 10:06:28
Message: <50bb6e74@news.povray.org>
Orchid Win7 v1 <voi### [at] devnull> wrote:
> Here's a challenge - write me a C# function (or even just some 
> psuedocode) which will take a string containing space-delimited positive 
> integers, and return them in ascending order.

If it were C++, I could write a few lines of code that does that, although
with the caveat that I would first have to ask what the return type should
be and whether there should be any kind of error-checking or not (and if
yes, how errors should be notified to the calling code.) Space-delimited
integers in a string happens to be one of the easiest things to parse in C++.
(It would be much more complicated if the syntax were more complex.)

I assume there's an at least as easy way of doing it in C#, but since
I don't know the language I would fail the test.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.