Skip to content

Conversation

@KaalidArare
Copy link
Contributor

@KaalidArare KaalidArare commented Nov 12, 2024

Congrats on taking the first step to contributing to the Sample Programs repository maintained by The Renegade Coder!
For simplicity, please make sure that your pull request includes one and only one contribution.

Please fill one of the sections below as applicable.
Please also add any other relevant information to the Notes section at the bottom.
You may delete or just ignore any other sections.
For more information please refer to our contributing documentation

I Am Adding a New Code Snippet in an Existing Language

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @KaalidArare! Thanks for contributing to this project! We are a rather small team, so it may take some time to process this request. In the meantime, there are several ways you can make yourself a part of The Renegade Coder community. For instance, you can:

Thanks for your help!

Copy link
Collaborator

@rzuckerm rzuckerm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KaalidArare In order to make a pull request, you need to log an issue first. This is all spelled out in our Contributing Guide. Also, please refer to the project documentation. This project is supposed to accept a command line argument

Comment on lines 27 to 36
// Test cases
print(isPalindrome(input: "5")) // returns true
// print(isPalindrome(input: "2442")) // Returns true
// print(isPalindrome(input: "232")) // Returns true
print(isPalindrome(input: "5215")) // Returns false
print(isPalindrome(input: "521")) // Returns false
print(isPalindrome(input: "")) // No output
print(isPalindrome(input: "a")) // Outputs usage message
// print(isPalindrome(input: "-7")) // Outputs usage message
// print(isPalindrome(input: "5.41")) // Outputs usage message
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove these. The code is automatically tested by our workflows.

@rzuckerm rzuckerm changed the title Added Palindromic-Number to Swift Added Palindromic Number to Swift Nov 12, 2024
@rzuckerm rzuckerm added enhancement Any code that improves the repo palindromic number See: https://sampleprograms.io/projects/palindromic-number/ labels Nov 12, 2024
@rzuckerm rzuckerm changed the title Added Palindromic Number to Swift Add Palindromic Number to Swift Nov 12, 2024
@KaalidArare KaalidArare mentioned this pull request Nov 12, 2024
19 tasks
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link
Collaborator

@rzuckerm rzuckerm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, @KaalidArare . Thanks for your contribution!

I went ahead and created the issue for you. However, in the future, I'd appreciate it if you would create the issue first before doing a PR. This is described in our contributing guide

@rzuckerm rzuckerm merged commit 1efe1ef into TheRenegadeCoder:main Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Any code that improves the repo palindromic number See: https://sampleprograms.io/projects/palindromic-number/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Palindromic Number in Swift

2 participants