Giter Club home page Giter Club logo

algorithm-reverse-string's Introduction

algorithm-reverse-string

Fun Story

The following is the scenario. If you don't want to spend time reading jump down to the specs.

You are a treasure hunter who stumbled upon a magic lamp. (Oh goody!) You rub the lamp in an attempt to disprove the myth of the genie and 3 wishes.

Low and behold a genie emerges!

"Hello, hello, it is me! Wishes I grant is of count three!" the genie belts out.

He continues, "Due to previous ambiguity and a few deaf genies there have been some changes. First, your wish can't be spoken, but must be in written form. That way we actually grant what you want. Second you must write down your wish again but backwards. The letters will still be forward facing.
Then, and only then, do you rub the lamp and ask for that same wish."

"Sounds complicated", you retort.

Unbeknownst to you the new rules were not due to some mis-granted wishes. The true agenda was to inhibit people from requesting wishes. The genii who pushed this into genie law were extremely lazy.

Fortunately, you have a laptop at hand. If only you could write a program to reverse a string...

Specs

Write a program that takes in a string and returns the string in reverse.

Examples

input: hello

output: olleh

input: racecar

output: racecar

input: I like food

output: doof ekil I

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.