---
title: "#algorithm-solutions articles | Hashnode"
description: "Explore 2 articles tagged #algorithm-solutions on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/algorithm-solutions"
---

Tag

# #algorithm-solutions

2 posts · 0 followers

[Sarthak Kulkarni](https://hashnode.com/@combustrrr) · [Dec 1, 2024](https://hashnode.com/posts/solving-the-amazing-subarrays-problem-in-java/674c48b2e5a4c0d6e1a9a84f)

### [Solving the 'Amazing Subarrays' Problem in Java](https://combustrrr.hashnode.dev/solving-the-amazing-subarrays-problem-in-java?utm_source=hashnode&utm_medium=feed)

Problem: Count substrings starting with a vowel in a given string, modulo 10003. Solution: public class Solution { public int solve(String A) { int count = 0; char vowels\[\] = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}; ...

2 min read · [combustrrr.hashnode.dev](https://combustrrr.hashnode.dev/solving-the-amazing-subarrays-problem-in-java?utm_source=hashnode&utm_medium=feed)

[Sarthak Kulkarni](https://hashnode.com/@combustrrr) · [Dec 1, 2024](https://hashnode.com/posts/solving-string-permutation-problems-in-java/674c47c8fe94cdd95e1ff758)

### [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) { ...

2 min read · [combustrrr.hashnode.dev](https://combustrrr.hashnode.dev/solving-string-permutation-problems-in-java?utm_source=hashnode&utm_medium=feed)
