Загрузка...

Given a pair of non-empty strings. Count the number of matching characters in those strings

Given a pair of non-empty strings. Count the number of matching characters in those strings (consider the single count for the character which have duplicates in the strings).
Examples:

Input : strl = 'abodef
str2 = 'defghia'
Output : 4
(i.e. matching characters :- a, d, e, f)

Input : strI = 'aabeddeklli2@'
str2 = 'bb2211@55k'
Output : 5
(i.e. matching characters :- b, 1, 2, @, k)

Видео Given a pair of non-empty strings. Count the number of matching characters in those strings канала Lightning Rod
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять