1.find most occurrences of a character.

for exm: input:aaabbbbdddddyyy
output: d 5 times
how can i get that?


Answer Posted / manoj

As per my understanding using Scan opcode we can't find out
most occurrences of a character.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the rpg system?

660


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

706


When it is desirable to describe files Internally?

1180


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4195


how do I preserve and clean the array?

667






what is file information data structure?

1354


how can I tell when to replace the array?

692


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

476


what is the difference between do while and do until?

693


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1882


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

712


what is an online rpg?

715


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1443


how do you use commitment control in rpg?

747


What is the difference between copybooks and subprocedures in as400?

801