In this video I have discussed Sherlock and valid string hackerrank solution from hackerrank interview preparation kit.
Code : https://gist.github.com/Kuldip-G/7aad...
In the video I have discussed using Simple array and basic conditions
1. character frequency needs to be same
.If we are having more than 2 diff frequency then we will never have valid string
3. Checking the diff betn maximum frequency of character and minimum
if you are someone who is trying to solve all the problems from hackerrank interview preparation kit playlist and getting stuck anywhere or looking for optimized solution do check my playlist
• Hackerrank Interview Preparation Kit
0:00 Start
1:09 Problem Definition
2:04 Explanation
8:25 Code
Смотрите видео Sherlock and valid strings hackerrank solution онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Kuldip Ghotane 20 Август 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,060 раз и оно понравилось 58 людям.