전체 글31 [MySQL] HackerRank - Binary Tree Nodes 문제 풀이 문제 사이트아래 문제는 해커랭크에서 추출해온 문제입니다. 문제의 저작권은 해커랭크에 있으며 문제를 풀어보시려면 아래 링크를 클릭해주세요 🙂 Binary Tree Nodes | HackerRankWrite a query to find the node type of BST ordered by the value of the node.www.hackerrank.com 👉문제 설명 트리의 노드 타입을 나누는 문제 👉문제 풀이전체적인 구조를 잘 파악하는게 중요한 문제, IN에 대해서도 알고 있어야 문제를 쉽게 풀 수 있다 전체적인 로직1) P가 Null -> Root2) N이 P에 포함되지 않으면 -> Leaf3) 그 이외 -> Inner 👉문제 풀이 과정1. 노드타입별로 분류, CA.. 2024. 8. 31. [MySQL] HackerRank - Occupations 문제 풀이 문제 사이트아래 문제는 해커랭크에서 추출해온 문제입니다. 문제의 저작권은 해커랭크에 있으며 문제를 풀어보시려면 아래 링크를 클릭해주세요 🙂 Occupations | HackerRankPivot the Occupation column so the Name of each person in OCCUPATIONS is displayed underneath their respective Occupation.www.hackerrank.com 👉문제 설명 column은 Doctor, Professor, Singer, and Actor 순으로 분류아래에는 직업에 해당하는 이름을 알파벳 순으로 정렬하고, 직업에 해당하는 이름이 더 이상 없을 때는 NULL 출력 👉문제 풀이시작부터 어떻게 해야하는지.. 2024. 8. 30. [MySQL] HackerRank - The PADS 문제 풀이 문제 사이트아래 문제는 해커랭크에서 추출해온 문제입니다. 문제의 저작권은 해커랭크에 있으며 문제를 풀어보시려면 아래 링크를 클릭해주세요 🙂 The PADS | HackerRankQuery the name and abbreviated occupation for each person in OCCUPATIONS.www.hackerrank.com 👉문제 설명 첫번째 쿼리occupation테이블의 모든 이름을 알파벳 순서로 나열하고 각 직업의 첫 글자를 괄호 안에 묶어라name과 occupation 알파벳 순으로 정렬 두번째 쿼리occupation테이블에서 직업과 각 직업의 수를 오름차순으로 출력해라, 직업은 소문자로 출력출력할 포맷은 'There are a total of [직업 수][직업명]s.'.. 2024. 8. 29. [MySQL] HackerRank - Contest Leaderboard 문제 풀이 문제 사이트아래 문제는 해커랭크에서 추출해온 문제입니다. 문제의 저작권은 해커랭크에 있으며 문제를 풀어보시려면 아래 링크를 클릭해주세요 🙂 Contest Leaderboard | HackerRankGenerate the contest leaderboard.www.hackerrank.com 👉문제 설명더보기닫기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 q.. 2024. 8. 28. [MySQL] HackerRank - Challenges 문제 풀이 문제 사이트아래 문제는 해커랭크에서 추출해온 문제입니다. 문제의 저작권은 해커랭크에 있으며 문제를 풀어보시려면 아래 링크를 클릭해주세요 🙂 Challenges | HackerRankPrint the total number of challenges created by hackers.www.hackerrank.com 문제 설명더보기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 challen.. 2024. 8. 16. [MySQL] HackerRank - Ollivander's Inventory 문제 풀이 문제 사이트아래 문제는 해커랭크에서 추출해온 문제입니다. 문제의 저작권은 해커랭크에 있으며 문제를 풀어보시려면 아래 링크를 클릭해주세요 🙂 Ollivander's Inventory | HackerRankHelp pick out Ron's new wand.www.hackerrank.com 문제 설명더보기Harry Potter and his friends are at Ollivander's with Ron, finally replacing Charlie's old broken wand.Hermione decides the best way to choose is by determining the minimum number of gold galleons needed to buy each non-evil w.. 2024. 8. 15. 이전 1 2 3 4 5 6 다음