---
title: "Discussion on \"Solving the 'Amazing Subarrays' Problem in Java\" | Hashnode"
description: "Discussion on \"Solving the 'Amazing Subarrays' Problem in Java\". Problem:\nCount substrings starting with a vowel in a given string, modulo 10003.\nSolution:\npublic class Solution {\n    public int solve(String A) {\n        int count = 0;\n        char vowels[] = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'};\n   ..."
url: "https://hashnode.com/posts/solving-the-amazing-subarrays-problem-in-java/674c48b2e5a4c0d6e1a9a84f"
---

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

Discussion

# [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'}; ...

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

-   [#edge-case-handling](https://hashnode.com/tag/edge-case-handling)
-   [#java-programming](https://hashnode.com/tag/java-programming)
-   [#string-manipulation](https://hashnode.com/tag/string-manipulation)
-   [#algorithm-solutions](https://hashnode.com/tag/algorithm-solutions)

## Written by

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

@combustrrr

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
