cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Longest prefix of a string.
Longest prefix of a string.
May 11, 2014 at 7:17am UTC
abhishek2k49
(5)
Given a string containing symbols '<' and '>' I need to find the longest prefix string.e.g.
<<>> gives 4
>< gives 0
<>>> gives 2
Note: Every > must belong to only one <.
Topic archived. No new replies allowed.