Strings making anagrams hackerrank solution

Pubblicato il: 09 agosto 2020
sul canale di: Kuldip Ghotane
3,425
45

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


In questa pagina del sito puoi guardare il video online Strings making anagrams hackerrank solution della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Kuldip Ghotane 09 agosto 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,425 volte e gli è piaciuto 45 spettatori. Buona visione!