mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
🎉 Initial commit
This commit is contained in:
11
challenges/hello-world/README.md
Normal file
11
challenges/hello-world/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# hello-world
|
||||
|
||||
Created by @Divlo at 5 July 2020.
|
||||
|
||||
## Instructions :
|
||||
|
||||
Your function should return Hello depending on the parameter.
|
||||
|
||||
## Examples :
|
||||
|
||||
See the `input-output.json` file for examples of input/output.
|
14
challenges/hello-world/input-output.json
Normal file
14
challenges/hello-world/input-output.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"input": ["world"],
|
||||
"output": "Hello world!"
|
||||
},
|
||||
{
|
||||
"input": ["everyone"],
|
||||
"output": "Hello everyone!"
|
||||
},
|
||||
{
|
||||
"input": ["Divlo"],
|
||||
"output": "Hello Divlo!"
|
||||
}
|
||||
]
|
0
challenges/hello-world/solutions/.gitkeep
Normal file
0
challenges/hello-world/solutions/.gitkeep
Normal file
@ -0,0 +1,4 @@
|
||||
# javascript-hello - hello-world
|
||||
|
||||
Programming language : JavaScript
|
||||
Created by @Divlo at 5 July 2020.
|
@ -0,0 +1,5 @@
|
||||
function solution (arg) {
|
||||
return 'Hello ' + arg + '!'
|
||||
}
|
||||
|
||||
module.exports = solution
|
4
challenges/hello-world/solutions/python-hello/README.md
Normal file
4
challenges/hello-world/solutions/python-hello/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# python-hello - hello-world
|
||||
|
||||
Programming language : Python
|
||||
Created by @Divlo at 5 July 2020.
|
@ -0,0 +1,2 @@
|
||||
def solution(arg):
|
||||
return 'Hello ' + arg + '!'
|
@ -0,0 +1,4 @@
|
||||
# typescript-hello - hello-world
|
||||
|
||||
Programming language : TypeScript
|
||||
Created by @Divlo at 5 July 2020.
|
@ -0,0 +1,5 @@
|
||||
function solution (arg: string) {
|
||||
return 'Hello ' + arg + '!'
|
||||
}
|
||||
|
||||
export default solution
|
Reference in New Issue
Block a user