Palindrome Number problem. Leetcode problem number 9. JAVA interview programming playlist: • Interview Programming ... #java #interviewquestions #leetcode
Пікірлер: 28
@roqyaquran241 Жыл бұрын
Great job, thank you👍😊
@daylanbueno10 ай бұрын
Great solution. nice work.
@vickykarma28462 ай бұрын
Your explanation is excellent😊
@puneetpal1466 Жыл бұрын
Well explained...
@SumitChouhan-ss5tt15 күн бұрын
I just have a silly questions?? How much time the loop run ???
@nilesh_dac841 Жыл бұрын
you are doing very nice work mam ,please upload some more videos on array 🙏🙏🙏
@thefourhourtalk4 ай бұрын
super easy explanation thanks
@saishankar50054 ай бұрын
Very good explanation madam!!
@AhmadRaza-ff1rk Жыл бұрын
hey, it's not reversing the example -121 ad 121- , by logically it's also not possible because we are dealing with number no with string int x=154; int temp=x; int rev=0; while(x!=0){ rev= rev *10 + x%10; x =x/10; } System.out.println(rev); if (temp==rev){ System.out.println("Yes"); }else{ System.out.println("no")
@TechnosageLearning Жыл бұрын
Hi This problem is to check if a "number" is palindrome or not .so it ll work for numbers only
@sumitSdhondikarАй бұрын
vs code me public boolean method write kiya to code run nhi huwa kiyu
@AjaysFrictionLab Жыл бұрын
thank you mam
@nikhilnanhe341011 ай бұрын
Cool
@harshojha61187 ай бұрын
what is the recursive solution of this
@zohebansari642911 ай бұрын
Can you tell why it is not wrking for negative number ??
@TechnosageLearning11 ай бұрын
Because negative numbers are not palindrome numbers...if yoh reverse -131...Reverse would be 131-....both are not equal...so its not a palindrome number
@zohebansari642911 ай бұрын
@@TechnosageLearningcan you tell me what I had to make changes in code so it work with negative number public boolean isPalindrome(int x) { int rem = 0; int temp = x; int rev = 0; while (temp != 0) { rem = temp % 10; rev = rev * 10 + rem; temp = temp / 10; } if (rev == temp) { return true; } else { return false; } } }
@MaheshKumar-mt5wp11 ай бұрын
@@zohebansari6429 public boolean isPalindrome(int x) { if(x
@amanparmar11702 ай бұрын
Can we also solve the same problem with help of for loop
@reon_fernandes26 күн бұрын
While loop?
@empty_peace Жыл бұрын
*why it's wrong??!!!* (c++) #include using namespace std; int main() { int x ; cin>>x; int n = x ; if(x > 0) { int rev = 0 ; while(x > 0) { rev = (rev*10) + (x%10) ; x /= 10 ; } if(n == rev) { cout
@DOINGSOLUTIONS11 ай бұрын
IT DOES NOT WORK AS 1234567899 IS NOT A NOT IN RANGE
@TechnosageLearning11 ай бұрын
It will return false in this case!
@samadkhan370311 ай бұрын
if number is 11 then it will throw false
@TechnosageLearning11 ай бұрын
No..its returning true..Please try!
@JS_shorts_dev Жыл бұрын
this is not going to work on all test case like number 10 and you didn't solve on leetcode...next time show your leetcode code also
@TechnosageLearning Жыл бұрын
It is working for all the scenarios..I have tested on leetcode..please take the code from git and then give it a try..and in recent videos i am showing it on leetcode as well