Skip to content

Instantly share code, notes, and snippets.

@manwar
Last active May 8, 2026 22:37
Show Gist options
  • Select an option

  • Save manwar/1eaedb4387374d4088529ac3bbb97111 to your computer and use it in GitHub Desktop.

Select an option

Save manwar/1eaedb4387374d4088529ac3bbb97111 to your computer and use it in GitHub Desktop.
The Weekly Challenge - 374

The Weekly Challenge - 374

Early Bird Club members ONLY

Task 1: Count Vowel

Submitted by: Mohammad Sajid Anwar

You are given a string.

Write a script to return the all possible vowel substrings in the given string. A vowel substring is a substring that only consists of vowels and has all five vowels present in it.

Example 1

Input: $str = "aeiou"
Output: ("aeiou")

Example 2

Input: $str = "aaeeeiioouu"
Output: ("aeeeiioou")

Example 3

Input: $str = "aeiouuaxaeiou"
Output: ("aeiou", "aeiou", "eiouua")

Example 4

Input: $str = "uaeiou"
Output: ("aeiou", "uaeio")

Example 5

Input: $str = "aeioaeioa"
Output: ()

Task 2: Largest Same-digits Number

Submitted by: Mohammad Sajid Anwar

You are given a string containing 0-9 digits only.

Write a script to return the largest number with all digits the same in the given string.

Example 1

Input: $str = "6777133339"
Output: 3333

Example 2

Input: $str = "1200034"
Output: 4

Example 3

Input: $str = "44221155"
Output: 55

None found.

Example 4

Input: $str = "88888"
Output: 88888

Example 5

Input: $str = "11122233"
Output: 222

Last date to submit the solution 23:59 (UK Time) Sunday 17th May 2026.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment