GithubHelp home page GithubHelp logo

julia-upon-thee's Introduction

julia-upon-thee

A very start project, first time using Julia, you know?

Objective: Write a function that takes a string as input and returns the string with the order of the words reversed. This version of the challenge does not involve handling punctuation.

Details:

Input: A string containing words.
Output: The string with the order of the words reversed.

Examples:

Input: "Hello world" Output: "World hello"
Input: "This is a test" Output: "Test a is this"
Input: "Can you solve this challenge" Output: "Challenge this solve you can"
Input: “Is this a fun place to work, or what!” Output: “What or work, to place fun a this Is!”

Constraints:

The string will contain a minimum of 2 words and a maximum of 50 words.
Words are defined as sequences of characters separated by spaces.
Spaces between words should be preserved as in the original string.

Test info

include("test_worldwhirl.jl")
test_reverseWithPunctuation()

or

using Test
include("test_worldwhirl.jl")
@testset begin
    @test_reverseWithPunctuation()
    # Add more test functions if needed
end

julia-upon-thee's People

Contributors

funlikely avatar

Watchers

 avatar

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.