LeetCode: 567. Permutation in String (Golang & Java)

Publicado em: 14 Setembro 2024
no canal de: Nandeshwar Sah
50
1

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


Nesta página do site você pode assistir ao vídeo on-line LeetCode: 567. Permutation in String (Golang & Java) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Nandeshwar Sah 14 Setembro 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 50 vezes e gostou 1 espectadores. Boa visualização!