You are viewing a single comment's thread. Return to all comments →
Here is Oracle solution from my HackerrankPractice repository:
SELECT * FROM (SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY), CITY) WHERE ROWNUM = 1 UNION SELECT * FROM (SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) DESC, CITY) WHERE ROWNUM = 1;
Feel free to ask if you have any questions :)
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 5
You are viewing a single comment's thread. Return to all comments →
Here is Oracle solution from my HackerrankPractice repository:
Feel free to ask if you have any questions :)