567. Permutation in String | Leetcode Daily (POTD) 5 Oct 2024 | Medium | Java | Hindi

preview_player
Показать описание
"567. Permutation in String" is a medium-level problem and the daily challenge (POTD) for 5 October 2024 on LeetCode. The solution in the video is coded in Java, but the approach is explained using a dry-run on a blackboard, making it accessible to individuals from different programming backgrounds by focusing on the logic rather than language-specific details.

*Intuition:*
To check for a permutation, we simply need to verify if the substring has the same letters and the same frequency as the original string, contiguously. This can be done using a sliding window approach to compare the character frequencies.

Other problems for practice:

#leetcodejava #leetcode #dailychallenge #potd #hindi
Рекомендации по теме
Комментарии
Автор

thank you for the solution .Radhe Radhe

harishbehera
Автор

i got issue in private class. it says that illegal start of expression. then what i do now?

painterboydatta
join shbcf.ru