코딩테스트 63

HackerRank 코딩 테스트 - Weather Observation Station 18(LV.Medium)

Consider P1(a,b) and P2(c,d) to be two points on a 2D plane. a happens to equal the minimum value in Northern Latitude (LAT_N in STATION). b happens to equal the minimum value in Western Longitude (LONG_W in STATION). c happens to equal the maximum value in Northern Latitude (LAT_N in STATION). d happens to equal the maximum value in Western Longitude (LONG_W in STATION). Query the Manhattan Dis..

[SQL] 2024.10.27

HackerRank 코딩 테스트 - Weather Observation Station 19(LV.Medium)

Consider P1(a,c) and P2(b,d) to be two points on a 2D plane where (a,b) are the respective minimum and maximum values of Northern Latitude (LAT_N) and (c,d) are the respective minimum and maximum values of Western Longitude (LONG_W) in STATION. Query the Euclidean Distance between points P1 and P2 and format your answer to display 4 decimal digits. Input FormatThe STATION table is described as f..

[SQL] 2024.10.26

HackerRank 코딩 테스트 - Weather Observation Station 20(LV.Medium)

A median is defined as a number separating the higher half of a data set from the lower half. Query the median of the Northern Latitudes (LAT_N) from STATION and round your answer to 4 decimal places. Input FormatThe STATION table is described as follows:where LAT_N is the northern latitude and LONG_W is the western longitude. 중앙값(Median)은 데이터 집합의 상위 절반과 하위 절반을 나누는 값으로 정의됩니다. STATION 테이블에서 북위(LA..

[SQL] 2024.10.25

HackerRank 코딩 테스트 - The Report(LV.Medium)

Ketty gives Eve a task to generate a report containing three columns: Name, Grade and Mark. Ketty doesn't want the NAMES of those students who received a grade lower than 8. The report must be in descending order by grade -- i.e. higher grades are entered first. If there is more than one student with the same grade (8-10) assigned to them, order those particular students by their name alphabetic..

[SQL] 2024.10.24

HackerRank 코딩 테스트 - Top Competitors(LV.Medium)

Julia just finished conducting a coding contest, and she needs your help assembling the leaderboard! Write a query to print the respective hacker_id and name of hackers who achieved full scores for more than one challenge. Order your output in descending order by the total number of challenges in which the hacker earned a full score. If more than one hacker received full scores in same number of..

[SQL] 2024.10.23

HackerRank 코딩 테스트 - Challenges(LV.Medium)

Julia asked her students to create some coding challenges. Write a query to print the hacker_id, name, and the total number of challenges created by each student. Sort your results by the total number of challenges in descending order. If more than one student created the same number of challenges, then sort the result by hacker_id. If more than one student created the same number of challenges ..

[SQL] 2024.10.21

HackerRank 코딩 테스트 - Contest Leaderboard(LV.Medium)

You did such a great job helping Julia with her last coding contest challenge that she wants you to work on this one, too!The total score of a hacker is the sum of their maximum scores for all of the challenges. Write a query to print the hacker_id, name, and total score of the hackers ordered by the descending score. If more than one hacker achieved the same total score, then sort the result by..

[SQL] 2024.10.20