---
title: "Discussion on \"LeetCode 567: Permutation In String — Step-by-Step Visual Trace\" | Hashnode"
description: "Discussion on \"LeetCode 567: Permutation In String — Step-by-Step Visual Trace\". Given two strings s1 and s2, return true if s2 contains a permutation of s1. A permutation is a rearrangement of characters, so we need to find if any substring of s2 has the same character frequencies as s1."
url: "https://hashnode.com/posts/permutation-in-string-visualization/69d7d2731cf15606b2600944"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode 567: Permutation In String — Step-by-Step Visual Trace](https://blog.tracelit.dev/permutation-in-string-visualization?utm_source=hashnode&utm_medium=feed)

Given two strings s1 and s2, return true if s2 contains a permutation of s1. A permutation is a rearrangement of characters, so we need to find if any substring of s2 has the same character frequencies as s1.

Apr 9 · 1 min read · blog.tracelit.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[tracelit](https://hashnode.com/@tracelit)

@tracelit

  
[View profile](https://hashnode.com/@tracelit)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
