in Education by
program code for this question: Raju has a lot of strings but he does not like all of them.He likes only Swaggy strings. Now Raju wants to find the Swaggy String S from the given string N. A Swaggy string S has the following properties- It must be lexicographically largest. It must be a subsequence of original string N. Every character in S must appear at least K times. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Since N is the original string and S is the substring. S=kch(z) where ch(z) is the character and value of z varies from 1 to 26. The swaggy string S (kch(z) is a substring of the original string N. The programmer can use the algorithm to find out a substring from an orginal string in order to get the swaggy string S (kch(z)).

Related questions

0 votes
    hi friends hope you all are doing great Plz answer my question please do not give invalid answers Write a program ... number. Thank you Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    sumit is trying his hand at java programming but ,he does not know which type of language it is Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    Wt is coding classes please help me in this question give a valid answer please I will mark them brainlist and ... give valid answer. Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    To know the opinion of the students about Mathematics, a survey of 200 students were conducted. The data was recorded ... not like it. Select the correct answer from above options...
asked Nov 25, 2021 in Education by JackTerrance
0 votes
    urgently needed a code in any programming language for the following question Given a string S. Find a string R which ... line of input contains a single string S. Constraints: 1...
asked Dec 9, 2021 in Education by JackTerrance
0 votes
    urgently needed a code in any programming language for the following question Given a string S. Find a string R which ... line of input contains a single string S. Constraints: 1...
asked Dec 3, 2021 in Education by JackTerrance
0 votes
    question – i have many keys and i am used for typing plz answer this question Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Write the following in while(): For (i=1;i =100;i++){Print( %d \ ,i);} (Will no one be able to solve ... as i am doing an exam now) Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    A memory byte location contains the pattern 00101100. What does this pattern represent when interpreted as a binary ... ASCII code? Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Anita has to send an email to Raees. She also wants to send the same e-mail to Vandana but does not want ... email address of Vandana? Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Write a Java program to read two strings from command line arguments and check the equality of two strings using string function. Select the correct answer from above options...
asked Dec 9, 2021 in Education by JackTerrance
...