In this video I have discussed String : making anagram solution from hackerrank preparation kit playlist.
Naive approach -- transverse first string and check the element exist in second string or not and we will calculate how many characters which do not make pairs
Optimized approach : we can create character frequency array (mapping char and freq value) and we can check the absolute difference for all 26 characters in two frequency array( first string ,second string )
if you are 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
0:32 Problem Definition
2:30 Naive approach with example
5:45 Optimized approach
11:15 Writing code
Nesta página do site você pode assistir ao vídeo on-line Strings making anagrams hackerrank solution duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Kuldip Ghotane 09 Agosto 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,425 vezes e gostou 45 espectadores. Boa visualização!