Skip to main content
Cadet | Tier 2
February 8, 2022
Question

i need to display letters if string contains more than one occurrence . Ex String is 464662352

  • February 8, 2022
  • 6 replies
  • 645 views
i need to display letters if string contains more than one occurrence . Ex String is 464662352

6 replies

Cadet | Tier 2
February 8, 2022

o/p =4,6,2 because this are more than one occurrence

Most Valuable Pathfinder
February 8, 2022

Hi @madhavarao cherukuri​ ,

 

What should be the output?

Chand
Cadet | Tier 2
February 8, 2022

Hey @madhavarao cherukuri​,

The approach I would take for this is to loop through each character of the string and use the 'Find' action within the String package. If the 'Find' action finds more than one instance of the character then add it to an output list. Also add a check for duplicates in the output before adding to the output.

 

There are definitely improves that can be made but this was my first thought.

Ashwin A.K
Navigator | Tier 3
February 9, 2022

Hi @madhavarao cherukuri​ ,

 

Here is a short workflow I have developed that works:

 

image 

 

image 

Kind Regards,

Ashwin A.K

 

Blogs at TheCodingTheory - https://www.thecodingtheory.com
Cadet | Tier 2
February 9, 2022

Thanks @Ashwin A.K​ 

Ashwin A.K
Navigator | Tier 3
February 9, 2022

Glad I could help!

 

I'd appreciate it if you marked my solution as "Best" so that others facing similar issues may benefit from it as well.

 

Kind Regards,

Ashwin A.K

Blogs at TheCodingTheory - https://www.thecodingtheory.com