Problem: Permutation in string
Difficulty Level: Medium
Algorithm: create two blocks array of length 26 for string s1 and s2. fill s1 and s2 for s1's length, check if both array same if same return. Next run loop from len(s1) in s2 string. keep adding letter in block2 and keep removing 1 item from beginning s2. keep comparing s1 and s2 if equal return true
Programming Language: Golang & Java
In questa pagina del sito puoi guardare il video online LeetCode: 567. Permutation in String (Golang & Java) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Nandeshwar Sah 14 settembre 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 50 volte e gli è piaciuto 1 spettatori. Buona visione!