---
title: "Discussion on \"Solving String Permutation Problems in Java\" | Hashnode"
description: "Discussion on \"Solving String Permutation Problems in Java\". Question:\nGiven two strings A and B, check if they can be rearranged to match (i.e., check if they are permutations of each other).\nSolution:\nimport java.util.Arrays;\n\npublic class Solution {\n    public int permuteStrings(String A, String B) {\n      ..."
url: "https://hashnode.com/posts/solving-string-permutation-problems-in-java/674c47c8fe94cdd95e1ff758"
---

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

Discussion

# [Solving String Permutation Problems in Java](https://combustrrr.hashnode.dev/solving-string-permutation-problems-in-java?utm_source=hashnode&utm_medium=feed)

Question: Given two strings A and B, check if they can be rearranged to match (i.e., check if they are permutations of each other). Solution: import java.util.Arrays; public class Solution { public int permuteStrings(String A, String B) { ...

Dec 1, 2024 · 2 min read · combustrrr.hashnode.dev  
Read the article

-   [#algorithm-solutions](https://hashnode.com/tag/algorithm-solutions)
-   [#java-programming](https://hashnode.com/tag/java-programming)
-   [#string-manipulation](https://hashnode.com/tag/string-manipulation)
-   [#input-validation](https://hashnode.com/tag/input-validation)

## Written by

[Sarthak Kulkarni](https://hashnode.com/@combustrrr)

@combustrrr

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
