HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 33164 thumbnail
User 225256 avatar

By mswatcher
via blogs.msdn.com
Published: Aug 04 2007 / 16:48

A friend of mine forwarded me this nice little problem he got asked in some interview. Write code to reverse a string such that the words are reversed as in "We apologise for the inconvenience" becomes "inconvenience the for apologise We". Obviously (is there fun otherwise?) the problem had to be solved for a memory constraint device (constant space). I thought I'd share the solution as its kind of neat. The
  • 13
  • 0
  • 2638
  • 3

Comments

Add your comment
User 211189 avatar

rasman replied ago:

2 votes Vote down Vote up Reply

Worth voting up just for Wolf's comment on the article. :-)

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (13)



Voters Against This Link (0)