Gulshan Kumarperfinsights.hashnode.dev·May 11, 2024Find Palindrome With Fixed LengthGiven an integer array queries and a positive integer intLength, return an array answer where answer[i] is either the queries[i]<sup>th</sup> smallest positive palindrome of length intLength or -1 if no such palindrome exists. A palindrome is a numbe...DiscussJava Solution#Palindrome
Bablu Roybabluroy.hashnode.dev·Apr 26, 2024Mastering Essential Algorithms with JavaScriptIn the realm of programming, algorithms serve as the backbone of problem-solving methodologies, offering structured steps to tackle computational tasks efficiently. It's important to form efficient algorithms that optimize problem-solving processes. ...DiscussJavaScript
Srisrip.hashnode.dev·Apr 26, 2024Beyond Basics: Mastering Arrays - Resizing, Missing Numbers, and PalindromesIn this article, we'll dive deeper into arrays, covering: Resizing Arrays: Learn how to dynamically resize arrays to accommodate changing data. Problem 1: Finding the Missing Number: Given an array of distinct numbers from 1 to n-1, find the missin...Discussresize array
Gagan G Saralayagagang.hashnode.dev·Mar 4, 2024C program to cheak if a number is a palandrome or not.Here is a program to cheak if a number is a palandrome or not. A word, sentence, verse, or even number that reads the same backward or forward. #include<stdio.h> int palandrome(int n); int main(){ int n; printf("Enter the number you want to f...Discuss7daystreak
Gulshan Kumarperfinsights.hashnode.dev·Feb 10, 2024Palindrome NumberGiven an integer x, return true if x is a palindrome*, and false otherwise*. LeetCode Problem - 9 class Solution { // Method to check if a number is a palindrome public boolean isPalindrome(int x) { // Convert the integer to a string ...DiscussJava SolutionJava
Tapan Rachchhtapanrachchh.hashnode.dev·Jan 24, 2024Pseudo-Palindromic Paths in a Binary TreeComparing my code from a year ago. Sep 14, 2022 temp = [] d={} ans = 0 class Solution: def pseudoPalindromicPaths (self, root: Optional[TreeNode]) -> int: def goDeep(node): global temp,d,ans if node: ...Discussleetcode
satyam raojarvish.hashnode.dev·Jan 10, 2024what is a palindrome?Exploring Palindrome Programs in Java: Unraveling the Symmetry Introduction: Palindrome programs in Java hold a certain fascination as they involve creating sequences of characters that read the same forward and backward. This symmetric quality makes...Discuss#Palindrome
Sirisha Challagirisirishachallagiri.hashnode.dev·Nov 14, 2023Palindrome or notA palindrome is a word derived from the Greek meaning "running back again". A string is called a palindrome string if the reverse of that string is the same as the original string. Example lol, madam, level. Eg: original string = mom after reversing ...Discuss·1 likeCode With SiriJava
Sawan Badhwarsawan1367.hashnode.dev·Nov 3, 2023Day 6 but Day 4 of RecursionHello! everyone, it's nice to interact and share my experiences with you. I hope you like my blogs. As we were going through the topics of recursion, we also tried to solve a few of the questions with the help of recursion. However, solving only a fe...Discuss·10 likes#Palindrome
Kallol Bairagikallolbairagi.hashnode.dev·Oct 12, 2023#125. Valid Palindrome [LeetCode Grind 75 in Java]class Solution { public boolean isPalindrome(String s) { int n = s.length(); //making the string as case insensitive StringBuilder sb = new StringBuilder(); for(char c : s.toCharArray()){ c = Characte...DiscussLeetCode Grind 75 in JavaJava