We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
It didn't give me any city name starting with a vowel or with a vowel at the end (unless the city name was compounded by two words, in that case, if the first word ended in a vowel or the second word started with a vowel it would be part of the output). However, it was not accepted, so I saw on the discussion section that someone put as a solution the following code:
This is fine, but it doesn't prevent SQL from giving you city names with a vowel at the end due to the OR condition. However, it is accepted as a valid answer. I think the problem is not correctly formulated or the solution is not correctly programmed.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 11
You are viewing a single comment's thread. Return to all comments →
This was my original answer:
It didn't give me any city name starting with a vowel or with a vowel at the end (unless the city name was compounded by two words, in that case, if the first word ended in a vowel or the second word started with a vowel it would be part of the output). However, it was not accepted, so I saw on the discussion section that someone put as a solution the following code:
This is fine, but it doesn't prevent SQL from giving you city names with a vowel at the end due to the OR condition. However, it is accepted as a valid answer. I think the problem is not correctly formulated or the solution is not correctly programmed.