|
![](/i/fill.gif) |
Orchid Win7 v1 <voi### [at] dev null> 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
|
![](/i/fill.gif) |