Skip to main content

All Questions

Tagged with
7 votes
3 answers
187 views

Euler - Largest Palindrome Product in Java

Having been going over the documentation, learning more of the subtleties of Java. I am now going over some basic Project-Euler solution code I wrote a little while back. Hoping I can pick up some ...
tijko's user avatar
  • 720
2 votes
3 answers
137 views

Find long palindrome multiplications in modern C++

I'm a former C# programmer, updating my rusty C++98 (perhaps I should try Rust instead) to modern C++20. My main goal is to get used to C++ standard library types and algorithms. I chose to solve a ...
Thomas Weller's user avatar
1 vote
1 answer
362 views

Finding the next palindrome number

I wrote a piece of code that generates the next palindromic number and that works fine. However I feel like my code isn't as efficient as it could be. Are there any tweaks that I could implement to ...
mhay10's user avatar
  • 39
5 votes
7 answers
3k views

Determine if a word is a palindrome

I'm a newbie programmer and was given a task to find if the input word is a palindrome or not. Now, I've written the program to the best of my ability but would like to know how it could be improved. ...
Manya Garg's user avatar
1 vote
1 answer
89 views

Optimizing Code for Project Euler Problem 04

I just finished Problem 04 on Project Euler, and I was looking at ways to optimize my code, just started learning functions too, so I'm pretty sure it's very bad, hopefully you guys can help me. ...
fabinfabinfabin's user avatar
9 votes
5 answers
3k views

Palindrome checker program

I've been studying Java for some days and I'm just now starting to make some simple programs, I'd like to know if there's any 'noob' mistakes or habits that I could avoid. In other words: how could ...
Tlomoloko's user avatar
  • 637
3 votes
1 answer
271 views

Project Euler - Problem No.4 - Largest palindrome product

according to the problem: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made ...
Omri Shneor's user avatar
4 votes
3 answers
2k views

Palindrome test

This is some code that determines if a string of characters is a palindrome or not. My professor says that there is a performance issue with the program, but I can't quite put my finger on it. Can ...
Avantika P's user avatar
4 votes
4 answers
297 views

Largest Palindrome Product - Project Euler #4

This is my code for Project Euler Problem #4 The question: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find ...
Eagle's user avatar
  • 255
1 vote
1 answer
52 views

A program that checks for Palindromness

Yes, I made it up. This program checks if an entered string is a palindrome or not by assigning a char variable the characters ...
Gabriel Diaz's user avatar
4 votes
2 answers
2k views

Next palindromic number

I wrote a function that takes a number and finds the next palindromic number. Time complexity is currently O(n2), which is really bad. How could one make this function more efficient? ...
MadHatter's user avatar
  • 837
2 votes
1 answer
95 views

Performing the Lychrel algorithm in Rust

A Lychrel number is a natural number that cannot form a palindrome through the iterative process of repeatedly reversing its digits and adding the resulting numbers. In the code below I'm trying to ...
Alexander Craggs's user avatar
-3 votes
1 answer
516 views

My third post about Python 3 palindromes

I'm new to python3, and I tried to test if my palindrome codes work and pass most of the edge cases. so I created the following 2 python files below. When I ran the ...
KJC2009's user avatar
  • 182
0 votes
1 answer
4k views

Unit test cases for Python palindrome

I'm new to Python 3, and I tried to test if my palindrome code works and passes most of the edge cases, so I created the following 2 Python files. When I ran the ...
KJC2009's user avatar
  • 182
3 votes
3 answers
394 views

Checking for one- or two-dimensional palindrome strings

I am new to Python and I would like some comments to the following code. It is for checking if a string is a palindrome (in one or two dimensions). ...
user avatar

15 30 50 per page