전체 글1543 leetcode 27. Remove Element https://leetcode.com/problems/remove-element/description/?envType=study-plan-v2&envId=top-interview-150 Remove Element - LeetCode Can you solve this real interview question? Remove Element - Given an integer array nums and an integer val, remove all occurrences of val in nums in-place [https://en.wikipedia.org/wiki/In-place_algorithm]. The order of the elements may be changed. Then r leetcode.co.. 2023. 6. 19. leetcode 1731. The Number of Employees Which Report to Each Employee https://leetcode.com/problems/the-number-of-employees-which-report-to-each-employee/description/?envType=study-plan-v2&envId=top-sql-50 The Number of Employees Which Report to Each Employee - LeetCode Can you solve this real interview question? The Number of Employees Which Report to Each Employee - Table: Employees +-------------+----------+ | Column Name | Type | +-------------+----------+ | e.. 2023. 6. 16. leetcode 1211. Queries Quality and Percentage https://leetcode.com/problems/queries-quality-and-percentage/description/?envType=study-plan-v2&envId=top-sql-50 Queries Quality and Percentage - LeetCode Can you solve this real interview question? Queries Quality and Percentage - Table: Queries +-------------+---------+ | Column Name | Type | +-------------+---------+ | query_name | varchar | | result | varchar | | position | int | | rating | .. 2023. 6. 13. leetcode 619. Biggest Single Number https://leetcode.com/problems/biggest-single-number/description/?envType=study-plan-v2&envId=top-sql-50 Biggest Single Number - LeetCode Can you solve this real interview question? Biggest Single Number - Table: MyNumbers +-------------+------+ | Column Name | Type | +-------------+------+ | num | int | +-------------+------+ There is no primary key for this table. It may contain duplicates leet.. 2023. 6. 9. leetcode 744. Find Smallest Letter Greater Than Target https://leetcode.com/problems/find-smallest-letter-greater-than-target/description/ Find Smallest Letter Greater Than Target - LeetCode Can you solve this real interview question? Find Smallest Letter Greater Than Target - You are given an array of characters letters that is sorted in non-decreasing order, and a character target. There are at least two different characters in letters. Retu leetc.. 2023. 6. 9. 백준 28074 모비스 https://www.acmicpc.net/problem/28074 28074번: 모비스 주어진 문자열에 포함된 알파벳 대문자들을 이용해 MOBIS를 만들 수 있으면 "YES", 그렇지 않으면 "NO"를 출력한다. www.acmicpc.net 1 2 3 4 5 6 7 8 9 10 11 12 13 14 def solution(s): answer = False if 'M' in s and 'O' in s and 'B' in s and 'I' in s and 'S' in s: answer = True if answer: return 'YES' else: return 'NO' if __name__ == '__main__': s = input() print(solution(s)) Colored by Color S.. 2023. 6. 8. 백준 28097 모범생 포닉스 https://www.acmicpc.net/problem/28097 28097번: 모범생 포닉스 모두가 알다시피, 포닉스는 포스텍을 대표하는 모범생이다! 포닉스는 최고의 모범생답게 남들과는 다른 공부 계획표를 가지고 있다. 포닉스는 총 $N$개의 공부 계획을 가지고 있다. $i$번째 공부 www.acmicpc.net 1 2 3 4 5 6 7 8 9 10 11 def solution(n, t): total = sum(t) + (n - 1) * 8 day, hour = total // 24, total % 24 return day, hour if __name__ == '__main__': n = int(input()) t = map(int, input().split()) print(*solution(n, t.. 2023. 6. 8. 백준 27890 특별한 작은 분수 https://www.acmicpc.net/problem/27890 27890번: 특별한 작은 분수 첫 번째 줄에 $0$초에서의 분수의 높이 $x_0$와 $N$이 주어진다. $x_0$와 $N$은 모두 정수이다. www.acmicpc.net 1 2 3 4 5 6 7 8 9 10 11 12 13 def solution(x, n): for i in range(n): if x % 2 == 0: x = int(x / 2) ^ 6 else: x = (2 * x) ^ 6 return x if __name__ == '__main__': x, n = map(int, input().split()) print(solution(x, n)) Colored by Color Scripter cs 2023. 6. 8. leetcode 1517. Find Users With Valid E-Mails https://leetcode.com/problems/find-users-with-valid-e-mails/solutions/748172/mysql-regexp-with-explanation/?envType=study-plan-v2&envId=top-sql-50 1 2 3 4 # Write your MySQL query statement below select * from Users where mail regexp '^[a-zA-Z][a-zA-Z0-9_.-]*@leetcode[.]com$' cs 정규식에서 . dot은 임의의 문자 하나에 해당하는 사실..! 잊지 않고 푸시길 바랍니다 in the regular expression. The fact that dot corresponds to any sing.. 2023. 6. 7. 백준 28113 정보섬의 대중교통 https://www.acmicpc.net/problem/28113 28113번: 정보섬의 대중교통 버스에 더 먼저 탑승할 수 있으면 Bus, 지하철에 더 먼저 탑승할 수 있으면 Subway, 버스와 지하철에 탑승하게 되는 시간이 동일하면 Anything을 출력한다. www.acmicpc.net 1 2 3 4 5 6 7 8 9 10 11 12 13 def solution(n, a, b): if a == b: return 'Anything' elif a 2023. 6. 7. leetcode 1633. Percentage of Users Attended a Contest https://leetcode.com/problems/percentage-of-users-attended-a-contest/description/?envType=study-plan-v2&envId=top-sql-50 Percentage of Users Attended a Contest - LeetCode Can you solve this real interview question? Percentage of Users Attended a Contest - Table: Users +-------------+---------+ | Column Name | Type | +-------------+---------+ | user_id | int | | user_name | varchar | +-----------.. 2023. 6. 1. leetcode 570. Managers with at Least 5 Direct Reports https://leetcode.com/problems/managers-with-at-least-5-direct-reports/?envType=study-plan-v2&envId=top-sql-50 Managers with at Least 5 Direct Reports - LeetCode Can you solve this real interview question? Managers with at Least 5 Direct Reports - Table: Employee +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | | department | varchar | | m.. 2023. 6. 1. 이전 1 ··· 11 12 13 14 15 16 17 ··· 129 다음