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

Flutter Bloc - Clean Architecture

What's new in android 14?

Dependencies vs Dev Dependencies in Flutter