Hackerrank – Weather Observation Station 5
Popis problému Celý popis zadania sa nacháza – Hackerrank. Riešenie Vytvoril som riešenie v týchto programovacích jazykoch: SQL Všetky riešenia sú dostupné aj na mojom GitHub profile. SQL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
select * from ( select city, length(city) from station order by length(city) asc, city asc ) where rownum = 1 union select * from ( select city, length(city) from station order by length(city) desc, city asc ) where rownum = 1; |