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
Recommended Answers
Jump to PostHi!! 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 IHi, which language do you want this for? c or c++.
Jump to PostI'm sure there is an example either in the code snippets section or on Wikipedia.
All 7 Replies
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.