Tagged articles
4 articles
Page 1 of 1
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 28, 2025 · Fundamentals

How to Accurately Detect Palindromes in Python: Multiple Approaches Explained

This article walks through a Python community member's question about checking whether a number is a palindrome, presents the original flawed code, and then offers several correct implementations—including a for‑else solution, an all‑function check, and a slicing method—while explaining the underlying logic.

String Manipulationalgorithmfor-else
0 likes · 5 min read
How to Accurately Detect Palindromes in Python: Multiple Approaches Explained
Su San Talks Tech
Su San Talks Tech
Feb 20, 2025 · Fundamentals

Master the Longest Palindromic Substring Problem with DP in Java & C++

After a humorous anecdote about job background checks, this article dives into LeetCode's classic Longest Palindromic Substring problem, explains brute‑force, center‑expansion, and dynamic‑programming approaches, and provides complete Java and C++ implementations with detailed DP recurrence and traversal strategies.

algorithmdynamic programmingpalindrome
0 likes · 8 min read
Master the Longest Palindromic Substring Problem with DP in Java & C++
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 23, 2022 · Fundamentals

Three Reliable Ways to Detect Palindromes in Python

This article tackles a basic Python problem—determining whether a positive integer is a palindrome—by analyzing the original flawed code and presenting three complete solutions: a for‑else approach, an all()‑based method, and a slice‑reversal technique, while also clarifying how the for‑else statement operates.

Code ExamplesString Manipulationfor-else
0 likes · 5 min read
Three Reliable Ways to Detect Palindromes in Python