Skip to content
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

Write a function in any programming language to solve the below problem Palindrome Number #1

Open
saptarshisarkar20 opened this issue Oct 10, 2022 · 6 comments
Labels
good first issue Good for newcomers hacktober hacktober-accepted hacktoberfest hacktoberfest2022 help wanted Extra attention is needed question Further information is requested

Comments

@saptarshisarkar20
Copy link
Owner

saptarshisarkar20 commented Oct 10, 2022

What to Do?

Star 🌟 the repo

Fork the repo

Location
Go to folder
Solve Here/LeetCode/PalindromeNumber

File name
Take your GitHub username id like "hrithik339", "hacker-boy", etc or anything which you have.
Then add a programming language extension after this (link for C++ add .cpp and for python add.py)
Only files with the correct file name will be accepted


Problem Statement

Given an integer x, return true if x is palindrome integer.

An integer is a palindrome when it reads the same backward as forward.

For example, 121 is a palindrome while 123 is not.

Example 1:

Input: x = 121
Output: true

Explanation: 121 reads as 121 from left to right and from right to left.

Example 2:

Input: x = -121
Output: false

Explanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome.

Example 3:


Input: x = 10
Output: false

Explanation: Reads 01 from right to left. Therefore it is not a palindrome.

Constraints:

-231 <= x <= 231 - 1

Follow up: Could you solve it without converting the integer to a string?

Function

class Solution {
public:
    bool isPalindrome(int x) {
        
    }
};
@saptarshisarkar20
Copy link
Owner Author

Don't wait to assign this issue just start to work on it

@poorvaditya18
Copy link

Hey, I can work on this issue.

@Harshdev625
Copy link
Contributor

Sir I added this question .

saptarshisarkar20 pushed a commit that referenced this issue Oct 13, 2022
@saptarshisarkar20
Copy link
Owner Author

Hey, I can work on this issue.

Don't wait for assignment, solve it and make a pull request

@sabhisharma-ise
Copy link

Can you please assign this issue?

@sauravraj188
Copy link

i am new to open source and so interesed to work on it ,
ca u please assign to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktober hacktober-accepted hacktoberfest hacktoberfest2022 help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants