CyberArmy University | Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

Programming Challenge 2 - easy-


[Replies] [Reply] [View by Thread] [Help]
[Back To Programming]

Posted by Delta Cpt dopel On 2008-07-17 01:49:52

Delta CptDelta Cpt
Delta Cpt dopel


To get you started and to see wht kind of response this will get, here is another challenge. Contrary to my first, this one is easy so there should be no excuses.

Write a function or method in any language that takes in a string as an argument and returns the reverse of that string. To avoid making this completely pointless, you cannot use built in language functions to accomplish this task. i.e. No using Perl's reverse function :p

The function protoype should be as follows...

String reverseWord(String input){}

ex.
reverseWord("hello") => "olleh"
reverseWord("CA") => "AC"
reverseWord("racecar") => "racecar"

==============================================================================
Bonus points will be awarded to the first person to post a solution that can run in N/2. By bonus points, I mean three pats on the back instead of two :p



Replies:


Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.03945 seconds


About Us | Privacy Policy | Mission Statement | Help