saptarshisarkar20 / LearnDSA

this repository is for the learning purpose and problem solving purpose
10 stars 24 forks source link

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

Open saptarshisarkar20 opened 1 year ago

saptarshisarkar20 commented 1 year ago

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 commented 1 year ago

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

poorvaditya18 commented 1 year ago

Hey, I can work on this issue.

Harshdev625 commented 1 year ago

Sir I added this question .

saptarshisarkar20 commented 1 year ago

Hey, I can work on this issue.

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

sabhisharma-ise commented 1 year ago

Can you please assign this issue?

sauravraj188 commented 1 year ago

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