RUVIDEO
Поделитесь видео 🙏

Codechef Lost Names String Coding Question Solved Using HashMap

📁 Лайфстайл 👁️ 16 📅 01.12.2023

Codechef Lost Names String Coding Question Solved Using HashMap.

If you find this video helpful, please 'Like' & 'Subscribe'.
This is really helpful for the channel and also motivates me to do more of such good videos.

Problem Link : https://www.codechef.com/problems/IT2

Problem Description:

Banta and his friends decide to play a game with names. They meet together and cut out alphabetical letters from a piece of waste cardboard which spell some names. After getting bored by playing for some time, they hang the letters of some two names above the main entrance of Banta's House. That night, when everyone went to bed, someone took all the letters of the hung names and he/she may have shuffled the letters and put them in one pile in front of the door.

The next morning it was impossible to find the culprit who had made the disorder. But everybody wondered whether it is possible to restore the names from the letters lying at the door? That is, we need to verify that there are no extra letters, and that nobody will need to cut more letters.

Help Banta and his friends to cope with this problem. You are given both names that hung over the front door the previous night, and a pile of letters that were found at the front door next morning.

Input
The input file consists of three lines: the first line contains the first name, The second line contains the second name and the third line contains letters in a pile that were found at the door in the morning. All lines are not empty and contain only uppercase Latin letters.

Output
Print "YES" without the quotes, if the letters in the pile could be permuted to make the names of the "New Year and Christmas Men". Otherwise, print "NO" without the quotes.

Constraints
The length of each line does not exceed 100.

Example
Input:
SANTACLAUS
DEDMOROZ
SANTAMOROZDEDCLAUS

Output:
YES
Input:
PAPAINOEL
JOULUPUKKI
JOULNAPAOILELUPUKKI

Output:
NO

Youtube channel: https://www.youtube.com/channel/UCrvpRH4lSRjp2T6btl0lf4w

https://github.com/maksrane100/codeforces_solutions
https://github.com/maksrane100/leetcode_solutions

#coding #softwareengineer #Leetcode #Algorithm #DataStructure #Java #programmer #tech #software #codinglife #Preparation
#interview #programminglife #programmingisfun #codechef #hashmap #leetcode #codeforces #algorithm #algorithms #datastructure #datastructuresandalgorithms

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Codechef Lost Names String Coding Question Solved Using HashMap», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.