2. Given a string and a number ?n?, find the ?n?th distinct repeating character.

Ads
 

2. Given a string and a number ?n?, find the ?n?th distinct repeating character.

  1. Given a string and a number ?n?, find the ?n?th distinct repeating character. For example, Input: Abracadabra, 1 Abracadabra, 2 Abracadabra, 3 Abracadabra, 4

Output a b r null

View Answers

April 28, 2011 at 5:27 PM

Please let me know what is n here? And the values 1,2,3,4 represents what?


April 28, 2011 at 7:06 PM

in exam he given me like this

--> Given a string and a number â??nâ??, find the â??nâ??th distinct repeating character.

For example, Input:

Abracadabra, 1

Abracadabra, 2

Abracadabra, 3

Abracadabra, 4

Output

a

b

r

null

Ads









Related Tutorials/Questions & Answers:
2. Given a string and a number ‘n’, find the ‘n’th distinct repeating character.
2. Given a string and a number ?n?, find the ?n?th distinct repeating character.    Given a string and a number ?n?, find the ?n?th distinct repeating character. For example, Input: Abracadabra, 1 Abracadabra, 2 Abracadabra, 3
plz give me program to this: Given a string and a number ‘n’, find the ‘n’th distinct repeating character.
plz give me program to this: Given a string and a number ?n?, find the ?n?th distinct repeating character.    Given a string and a number ?n?, find the ?n?th distinct repeating character. For example, Input: Abracadabra, 1
Advertisements
find all unique character in string using java
find all unique character in string using java  example: hello how are you. output should be waryu
find the given input is integer or string
find the given input is integer or string  simple coding for to check the given input value is integer or no.If the given value is integer display... CheckValue { public boolean checkIfNumber(String in) { try
java program
java program  Given a string and a number n, find the n th distinct repeating character
Write a method which will remove any given character from a string?
Write a method which will remove any given character from a string? In this example we will describe remove any given character from a string.... Example of remove any given character from a string
Write a program to find a factorial in any given number
Write a program to find a factorial in any given number This programming tutorial will teach you how to write a factorial of any given number... number less than or equal to n. For example  4! = 4 * 3 *2 * 1
Primary number
); System.out.print("Enter N:"); int n=input.nextInt(); find(n); } static void find(int n){ int i=0,count=2; if(n==1) { return; } if(n==2) { return
Primary number
); System.out.print("Enter N:"); int n=input.nextInt(); find(n); } static void find(int n){ int i=0,count=2; if(n==1) { return; } if(n==2) { return
java
java  Given a string and a number ?n?, find the ?n?th distinct repeating character. For example, Input: Abracadabra, 1 Abracadabra, 2 Abracadabra, 3 Abracadabra, 4 Output: a b r null
Write a java program that encrypt and decrypt some string by adding or removing 2 on each character.
2 on each character.  Write a java program that encrypt and decrypt some string by adding or removing 2 on each character. Example 1 : Please Enter Your String : Mamoun Please Enter Your Choice : 1. Encryption. 2. Decrypt ion
find the first character is vowel or not
find the first character is vowel or not  hi friend, can u plz send me javascript code for find the wether the first character is a vowel or not. 2) check wether the last character is same as the first character or not 3) check
J2ME count character into string
J2ME count character into string  i am new in J2ME, my problem is how to count character into number, i had been research google for almost 2 days... Next cmd button, next pages will display ans:10 character erm...these 2 days
count the repeated character in one string
count the repeated character in one string  to find the how character occurrence in one String (for example the string is -java means there is 2... java.util.*; class CountCharacters { public static void main(String[] args) throws
Find out last character of array
Find out last character of array  How we can find out the last character of array in java program
How to display string or character
How to display string or character  how to print character or a word without using array concept
A program to find the sum of odd number
A program to find the sum of odd number In this section you will learn how to find the sum of odd number in the series up to the given number in java...=sin.nextInt(); for(int i=1;i<n;i++) { if(i%2!=0) sum=sum+i
Removing character from a string in sql.
Removing character from a string in sql.  How to remove or replace character from a string
Removing character from a string in sql.
Removing character from a string in sql.  Removing special characters from a string in sql
Compare String with given String arraylists.
Compare String with given String arraylists.  I have one String for example abcThirtyFour. i have two arraylists of string. one contains one, two.... i was thinking of comparing given string with both the arraylists. but, i
Determining the Character Boundaries in a Unicode String
Determining the Character Boundaries in a Unicode String In this section,  you will learn how to determine the character boundaries in a string. By determining the character boundaries, you will be able to break the string
Java Remove a character from string
to remove a particular character from the string. In the given example, we have...Java Remove a character from string In this tutorial, you will learn how to remove a character from the string. There are several methods for examining
program on factorial of a given number in java
program on factorial of a given number in java  please tell me, how to write program on factorial of a given number in java
program on factorial of a given number in java
program on factorial of a given number in java  please tell me, how to write program on factorial of a given number in java
MySql find and replace string
MySql find and replace string  How to find and replace string or special characters in MySql & PHP?   Find and Replace String PHP $result = preg_replace('/\band\b/i', 'foo', $subject
servlet code for finding the table for given number
servlet code for finding the table for given number  servlet code for finding the table for given number?   Here is a an example...="../TableServlet"> <table> <tr><td>Enter a number to find its table:<
how to find the sum of integers in a string of sentence in java
how to find the sum of integers in a string of sentence in java  how to find the sum of integers in a string of sentence in java for e.g:--> abc d 2 3 21 the output should be 2+3+21=26
Help me on the given problem of String
Help me on the given problem of String  class Test { string s1="Hello",s2="lo"; System.out.println((s1=="Hel"+"lo")); System.out.println((s1=="Hel"+lo)); } The above program prints true
line number in a file of entered string
line number in a file of entered string  when i entered string from console , it should show line number in a file of that string
ModuleNotFoundError: No module named 'number_to_string'
ModuleNotFoundError: No module named 'number_to_string'  Hi, My... named 'number_to_string' How to remove the ModuleNotFoundError: No module named 'number_to_string' error? Thanks   Hi, In your
How to round a number to n decimal places in Java
How to round a number to n decimal places in Java  How to round a number to n decimal places in Java

Ads