Want to find the count of palindrome substring

Hi All,

Let say there is string ABBA, i want to find the count of Palindrome string.

How to achieve it?

Hi @Rakesh_Tiwari

Have you tried this

  • To get the String length you can use
    String Variable.Length

Regards
Gokul

Hi,

i am trying this way, but stuck in logic

@Rakesh_Tiwari

You mean want to find out the length of the string ?

i want to find the repeated count of substring like how many A and How many B are there.

or is it something wrong i am trying to achieve?

something like a complete character, count statistic? like

BurggruB
B:2
u:2
r:2
g:2

or a quick one like
YourString.Length / 2 , when length is even
YourString.Length / 2 - 1 , when length is odd due central char is mirror point

Hi @ppr ,

yes, i want like that.

if ABBA is there, then what is the count of A(A=2) and B(B=2).

@Rakesh_Tiwari
grafik
"Reliefpfeiler".toUpper.GroupBy(Function (x) x).ToDictionary(Function (x) x(0), Function (x) x.Count)

grafik
"Reliefpfeiler".toUpper.GroupBy(Function (x) x).ToDictionary(Function (x) x(0).toString, Function (x) x.Count)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.