LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simplest method in finding a Numeric Palindrome

Solved!
Go to solution

Christian, 

Actually the code with only blue wires involved, anyhow exceeds 3 functions (or 2 fun.+1 prop.node) which is the minimum as far I know. Am not saying its not possible, of-course your always welcomed to post such solutions!! Smiley Happy

0 Kudos
Message 31 of 44
(1,064 Views)

@PriyadarsiniS wrote:

Yup, Ben.. this was the first thought that came into picture.

Instead, of all this logical method of analyzing we just just straight away make the user right in a string control with artistic liberty, with some limitations written on the *terms and conditions view. Smiley Very Happy

 

Better an oops than a what if.. Smiley Wink


Bonus would be it would work on single word palindromes as well, like "radar" "mom" "dad". You would have to use a Trim White space to make it work on palindrome sentences like "madam I am adam".

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 32 of 44
(1,062 Views)

Yup..

 


@JÞB wrote:

OK So Great minds think alike

 

(Interesting cross-post)

 

How about 1 primitive? no fair peeking.......

Spoiler
Capture2.png

Rather be No VI, as Tim said!! Smiley Very Happy

0 Kudos
Message 33 of 44
(1,060 Views)

@altenbach wrote:

@Jacobson-ni wrote:

Or maybe a 0-byte file with the name "2"


I am holding up two fingers. Good enough?


Heck.  I can do it with one finger.  All you have to do is look at which one I'm holding up.  Smiley Very Happy

0 Kudos
Message 34 of 44
(1,045 Views)

Ben, that's not a palindrome sentence.....

"madamIamadam"

"madamaImadam"

0 Kudos
Message 35 of 44
(1,015 Views)

Isn't this case is applicable, if we relate the Input control as String.. Am I getting the point, that's conveyed!! 

If not, could you please elaborate it..

Ben wrote:

Bonus would be it would work on single word palindromes as well, like "radar" "mom" "dad". You would have to use a Trim White space to make it work on palindrome sentences like "madam I am adam".

0 Kudos
Message 36 of 44
(1,004 Views)

I think its:

madam I madam which would be a palindrome, as Ben said.

If Trim white space is used !! Robot Happy

0 Kudos
Message 37 of 44
(1,001 Views)

@PriyadarsiniS wrote:

I think its:

madam I madam which would be a palindrome, as Ben said.

If Trim white space is used !! Robot Happy


First: It's not what Ben said.

Second: "madam I madam" is a palindrome even WITHOUT Trim white space...... Smiley Surprised

0 Kudos
Message 38 of 44
(996 Views)

Okay, Intaris Smiley Embarassed

You'll be clear, if you see my last reply to Ben..

What I said, was just a suggestion.

0 Kudos
Message 39 of 44
(992 Views)

Intaris wrote:

Second: "madam I madam" is a palindrome even WITHOUT Trim white space...... Smiley Surprised


The phrase is supposed to be "Madam, I'm Adam".  Remove punctuation, white space, and capitalization and you end up with madamimadam.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 40 of 44
(988 Views)