Programming Challenge 2 - easy- |
||
![]() ![]() 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:
|
||
| CyberArmy::Forum v0.6 Generated In 0.03945 seconds |