Re: Reverse words in a string (Another Interview question)
- From: Randy <joe@xxxxxxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 13:52:30 -0500
Jaspreet wrote:
....
>
> I guess then the interviewer was justified in rejecting me. There goes
> another job for me. How I wish I should have agreed to the cannonical
> solution but I thought reversing the string first and then reversing
> the individual words is going to cost me on time and efficiency.
Maybe he just wanted to know if you knew what a stack was. IMHO, that's
the obvious data structure to use when reversing a string of input tokens.
Randy
--
Randy Crawford http://www.ruf.rice.edu/~rand rand AT rice DOT edu
"Howard Beale for President."
.
- Follow-Ups:
- Re: Reverse words in a string (Another Interview question)
- From: Gerry Quinn
- Re: Reverse words in a string (Another Interview question)
- References:
- Reverse words in a string (Another Interview question)
- From: Jaspreet
- Re: Reverse words in a string (Another Interview question)
- From: David Tiktin
- Re: Reverse words in a string (Another Interview question)
- From: Jaspreet
- Reverse words in a string (Another Interview question)
- Prev by Date: Re: Reverse words in a string (Another Interview question)
- Next by Date: Re: Is programming/computer science an art or science? or both?
- Previous by thread: Re: Reverse words in a string (Another Interview question)
- Next by thread: Re: Reverse words in a string (Another Interview question)
- Index(es):