-
-
Notifications
You must be signed in to change notification settings - Fork 561
reverse-string: Add new exercise #960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8f3e2b2
reverse string
eliaahadi ad599ed
updates per #960
eliaahadi 7accf3c
delete DS store
eliaahadi 64f23a3
updated test cases mostly
eliaahadi 6ed698d
added edits to test cases
eliaahadi 300a3e0
updates JSON and description files
eliaahadi 4decbde
updated comments
eliaahadi 531587e
rename json and comment edits
eliaahadi 4c926c4
updated comments
eliaahadi b10dcb9
rename property to reverse
eliaahadi 4807fe1
simpler description
eliaahadi 57f7581
update metadata
eliaahadi 5eac807
no adds to .gitignore
eliaahadi 1f4da26
simpler description
eliaahadi 1d08667
description & can data edits
eliaahadi fcdb93b
no gitignore or .DS_store
eliaahadi 8303c96
case description updates
eliaahadi 6595854
Merge https://github.com/exercism/problem-specifications
eliaahadi a32e42a
Restore .gitignore
eliaahadi 1433c14
edit to palindrome description
eliaahadi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "exercise": "reverse-string", | ||
| "version": "1.0.0", | ||
| "comments": [ | ||
| "If property based testing tools are available, a good property to test is reversing a string twice: reverse(reverse(string)) == string" | ||
| ], | ||
| "cases": [ | ||
| { | ||
| "description": "empty string", | ||
| "property": "reverse", | ||
| "input": "", | ||
| "expected": "" | ||
| }, | ||
| { | ||
| "description": "a word", | ||
| "property": "reverse", | ||
| "input": "robot", | ||
| "expected": "tobor" | ||
| }, | ||
| { | ||
| "description": "a capitalized word", | ||
| "property": "reverse", | ||
| "input": "Ramen", | ||
| "expected": "nemaR" | ||
| }, | ||
| { | ||
| "description": "a sentence with punctuation", | ||
| "property": "reverse", | ||
| "input": "I'm hungry!", | ||
| "expected": "!yrgnuh m'I" | ||
| }, | ||
| { | ||
| "description": "a palindrome", | ||
| "property": "reverse", | ||
| "input": "racecar", | ||
| "expected": "racecar" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Reverse a string | ||
|
|
||
| For example: | ||
| input: "cool" | ||
| output: "looc" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| blurb: "Reverse a string" | ||
| title: "reverse-string" | ||
| source: "Introductory challenge to reverse an input string" | ||
| source_url: "https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Short description is good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, short and to the point!