Generate the Non Repeated Characters of String

Another one..

But Interesting..

Question:

To Generate the non-repeated characters of String. Given two integers X and Y, returns containing exactly X letters "A" and exactly B letters "b". X defines maximum of character repetition.

Input:

Example: NonRepeatString(2,5,3);

Output:

AAbAAbAb


Get the source code from GitHub

Comments

Popular posts from this blog

Clear the app data programmatically in android

Speed up gradle build in Android Studio.

Proguard usage in Android