Hi!! can anybody gimme an algo for reversing the words in a string in O(n) time....
Eg..i/p:I love Linux
o/p: Linux love I
viv_mbbs -2 Newbie Poster
iamthwee
manutd 2 Junior Poster
Infarction 503 Posting Virtuoso
Narue 5,707 Bad Cop Team Colleague
viv_mbbs -2 Newbie Poster
~s.o.s~ commented: such attitude ...:( -2
Infarction 503 Posting Virtuoso
John A 1,896 Vampirical Lurker Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.