Skip to main content
edited body
Source Link

I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have gotten sick, so I can quarantine them from the other ones?

Some of the albums, however, are false positives, and thus there is no point in quarantining them. An album is a false positive if:

  • "Ill" does not come at the beginning of any of the words it's featured in
  • A vowel besides "e" comes after the word "Ill" in all of the words it's featured in (y counts as a vowel)

If an album name contains a word that starts with "Ill", as well as meeting the vowel requirements shown above (aiouy cannot come after "Ill"), then output a truthy value. Otherwise, output a falsy value. The input string does not have to be case-sensitive, so Illmatic would be just as valid as illmatic or ILLMATIC, and you may choose whatever input case you please.

Additionally, there are no requirements or restrictions for the type of string that you handle (Ex: ASCII or utf-8), and there will never be adjacent spaces within a given album name (Ex: "Ill Communication").

Test cases:

"Illmatic" -> True

"Licensed to Ill" -> True

"Ill Communication" -> True

"The IllestILLEST Villains" -> True

"Illumination of the ill man" -> True

"Madvillainy" -> False

"Music Inspired by Illumination & Dr. Seuss' The Grinch" -> False

"The Illyiad" -> False

"Villains are Illuminated" -> False

"Exmilitary" -> False

This is , so shortest answer wins!

I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have gotten sick, so I can quarantine them from the other ones?

Some of the albums, however, are false positives, and thus there is no point in quarantining them. An album is a false positive if:

  • "Ill" does not come at the beginning of any of the words it's featured in
  • A vowel besides "e" comes after the word "Ill" in all of the words it's featured in (y counts as a vowel)

If an album name contains a word that starts with "Ill", as well as meeting the vowel requirements shown above (aiouy cannot come after "Ill"), then output a truthy value. Otherwise, output a falsy value. The input string does not have to be case-sensitive, so Illmatic would be just as valid as illmatic or ILLMATIC.

Test cases:

"Illmatic" -> True

"Licensed to Ill" -> True

"Ill Communication" -> True

"The Illest Villains" -> True

"Illumination of the ill man" -> True

"Madvillainy" -> False

"Music Inspired by Illumination & Dr. Seuss' The Grinch" -> False

"The Illyiad" -> False

"Villains are Illuminated" -> False

"Exmilitary" -> False

This is , so shortest answer wins!

I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have gotten sick, so I can quarantine them from the other ones?

Some of the albums, however, are false positives, and thus there is no point in quarantining them. An album is a false positive if:

  • "Ill" does not come at the beginning of any of the words it's featured in
  • A vowel besides "e" comes after the word "Ill" in all of the words it's featured in (y counts as a vowel)

If an album name contains a word that starts with "Ill", as well as meeting the vowel requirements shown above (aiouy cannot come after "Ill"), then output a truthy value. Otherwise, output a falsy value. The input string does not have to be case-sensitive, so Illmatic would be just as valid as illmatic or ILLMATIC, and you may choose whatever input case you please.

Additionally, there are no requirements or restrictions for the type of string that you handle (Ex: ASCII or utf-8), and there will never be adjacent spaces within a given album name (Ex: "Ill Communication").

Test cases:

"Illmatic" -> True

"Licensed to Ill" -> True

"Ill Communication" -> True

"The ILLEST Villains" -> True

"Illumination of the ill man" -> True

"Madvillainy" -> False

"Music Inspired by Illumination & Dr. Seuss' The Grinch" -> False

"The Illyiad" -> False

"Villains are Illuminated" -> False

"Exmilitary" -> False

This is , so shortest answer wins!

edited body
Source Link

I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have gotten sick, so I can quarantine them from the other ones?

Some of the albums, however, are false positives, and thus there is no point in quarantining them. An album is a false positive if:

  • "Ill" does not come at the beginning of any of the words it's featured in
  • A vowel besides "e" comes after the word "Ill" in all of the words it's featured in (y counts as a vowel)

If an album name contains a word that starts with "Ill", as well as meeting the vowel requirements shown above (aiouy cannot come after "Ill"), then output a truthy value. Otherwise, output a falsy value. The input string does not have to be case-sensitive, so Illmatic would be just as valid as illmatic or ILLMATIC.

Test cases:

"Illmatic" -> True

"Licensed to Ill" -> True

"Ill Communication" -> True

"The Illest Villains" -> True

"Illumination of the Illill Man"man" -> True

"Madvillainy" -> False

"Music Inspired by Illumination & Dr. Seuss' The Grinch" -> False

"The Illyiad" -> False

"Villains are Illuminated" -> False

"Exmilitary" -> False

This is , so shortest answer wins!

I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have gotten sick, so I can quarantine them from the other ones?

Some of the albums, however, are false positives, and thus there is no point in quarantining them. An album is a false positive if:

  • "Ill" does not come at the beginning of any of the words it's featured in
  • A vowel besides "e" comes after the word "Ill" in all of the words it's featured in (y counts as a vowel)

If an album name contains a word that starts with "Ill", as well as meeting the vowel requirements shown above (aiouy cannot come after "Ill"), then output a truthy value. Otherwise, output a falsy value. The input string does not have to be case-sensitive, so Illmatic would be just as valid as illmatic or ILLMATIC.

Test cases:

"Illmatic" -> True

"Licensed to Ill" -> True

"Ill Communication" -> True

"The Illest Villains" -> True

"Illumination of the Ill Man" -> True

"Madvillainy" -> False

"Music Inspired by Illumination & Dr. Seuss' The Grinch" -> False

"The Illyiad" -> False

"Villains are Illuminated" -> False

"Exmilitary" -> False

This is , so shortest answer wins!

I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have gotten sick, so I can quarantine them from the other ones?

Some of the albums, however, are false positives, and thus there is no point in quarantining them. An album is a false positive if:

  • "Ill" does not come at the beginning of any of the words it's featured in
  • A vowel besides "e" comes after the word "Ill" in all of the words it's featured in (y counts as a vowel)

If an album name contains a word that starts with "Ill", as well as meeting the vowel requirements shown above (aiouy cannot come after "Ill"), then output a truthy value. Otherwise, output a falsy value. The input string does not have to be case-sensitive, so Illmatic would be just as valid as illmatic or ILLMATIC.

Test cases:

"Illmatic" -> True

"Licensed to Ill" -> True

"Ill Communication" -> True

"The Illest Villains" -> True

"Illumination of the ill man" -> True

"Madvillainy" -> False

"Music Inspired by Illumination & Dr. Seuss' The Grinch" -> False

"The Illyiad" -> False

"Villains are Illuminated" -> False

"Exmilitary" -> False

This is , so shortest answer wins!

made everything clearer (i hope)
Source Link

I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have gotten sick, so I can quarantine them from the other ones?

Some of the albums, however, are false positives, and thus there is no point in quarantining them. An album is a false positive if:

  • "Ill" does not come at the beginning of allany of the words it's featured in
  • A vowel besides "e" comes after the word "Ill" in all of the words it's featured in (y counts as a vowel)

GivenIf an album name ascontains a stringword that starts with "Ill", you mustas well as meeting the vowel requirements shown above (aiouy cannot come after "Ill"), then output a truthy value if the album truly is sick. Otherwise, andoutput a falsy value if it is not. The input string does not have to be case-sensitive, so Illmatic would be just as valid as illmatic or ILLMATIC.

Test cases:

"Illmatic" -> True

"Licensed to Ill" -> True

"Ill Communication" -> True

"The Illest Villains" -> True

"Illumination of the Ill Man" -> True

"Madvillainy" -> False

"Music Inspired by Illumination & Dr. Seuss' The Grinch" -> False

"The Illyiad" -> False

"Villains are Illuminated" -> False

"Exmilitary" -> False

This is , so shortest answer wins!

I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have gotten sick, so I can quarantine them from the other ones?

Some of the albums, however, are false positives, and thus there is no point in quarantining them. An album is a false positive if:

  • "Ill" does not come at the beginning of all of the words it's featured in
  • A vowel besides "e" comes after the word "Ill" in all of the words it's featured in (y counts as a vowel)

Given an album name as a string, you must output a truthy value if the album truly is sick, and a falsy value if it is not. The input string does not have to be case-sensitive, so Illmatic would be just as valid as illmatic or ILLMATIC.

Test cases:

"Illmatic" -> True

"Licensed to Ill" -> True

"Ill Communication" -> True

"The Illest Villains" -> True

"Illumination of the Ill Man" -> True

"Madvillainy" -> False

"Music Inspired by Illumination & Dr. Seuss' The Grinch" -> False

"The Illyiad" -> False

"Villains are Illuminated" -> False

This is , so shortest answer wins!

I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have gotten sick, so I can quarantine them from the other ones?

Some of the albums, however, are false positives, and thus there is no point in quarantining them. An album is a false positive if:

  • "Ill" does not come at the beginning of any of the words it's featured in
  • A vowel besides "e" comes after the word "Ill" in all of the words it's featured in (y counts as a vowel)

If an album name contains a word that starts with "Ill", as well as meeting the vowel requirements shown above (aiouy cannot come after "Ill"), then output a truthy value. Otherwise, output a falsy value. The input string does not have to be case-sensitive, so Illmatic would be just as valid as illmatic or ILLMATIC.

Test cases:

"Illmatic" -> True

"Licensed to Ill" -> True

"Ill Communication" -> True

"The Illest Villains" -> True

"Illumination of the Ill Man" -> True

"Madvillainy" -> False

"Music Inspired by Illumination & Dr. Seuss' The Grinch" -> False

"The Illyiad" -> False

"Villains are Illuminated" -> False

"Exmilitary" -> False

This is , so shortest answer wins!

y is not a vowel
Source Link
Loading
Became Hot Network Question
Source Link
Loading