String Problem?

Правка en1, от roll_no_51, 2020-08-08 06:20:17

Hello all,

I was thinking about a problem and I don't know if it is already available. I googled about it and could not find anything satisfactory, so, posting it here. Can you help me to devise a solution.

Problem goes like this:

We are given with a string S and an array of string A.

For a given integer K, we define an array of string B, where B consist of all the string Ai from A, such that Ai can be formed from S with maximum K updates.

Given an integer M (1<=M<=5), how to find array B for each integer K where 1<=K<=M.

Suggest optimal way to solve this.

Thanks

Теги #string

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский roll_no_51 2020-08-08 06:20:17 606 Initial revision (published)