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.
This is the solution for Question 9- Palindrome Number from LeetCode
This Question asked to verify if an int is Palindrome. Palindrome number is a number that reads the same backward as forward.
First of all, check if the number is negative(negative numbers can not be palindromes!).
This code copies the int given to make sure we don't lose it during the program. After that, we loop through the number and invert all the digits of the given x. At the end, we compare if the number given and the number made are the same, if they are: it means that the integer given is a palindrome(since it is read the same backward and forward), if they are not, the integer is no a palindrome.
Related Issue
Acceptance Criteria
| | Q1
| | Q2
| | Q3
| | Q4
| | Q5
| | Q6
| | Q7
| | Q8
| ✓ | Q9
| | Q10
Type of Changes
Testing Steps / QA Criteria