Coding Test
190 posts
Coding Test
members
프로그래머스 - 코딩테스트 연습 - 스택/큐 - 프린터
문제
https://school.programmers.co.kr/learn/courses/30/lessons/42587
정답
공간 복잡도 낮은 방법
def solution(priorities, location):
order = 1
max_p = max(priorities)
while priorities:
priority = priorities.…
Coding Test
members
프로그래머스 - 코딩테스트 연습 - 스택/큐 - 같은 숫자는 싫어
문제
https://school.programmers.co.kr/learn/courses/30/lessons/12906
정답
def solution(arr):
stack = []
result = [arr[0]]
for num in arr:
if stack:
curr = stack.pop()
if curr…
members
Leetcode - 574. Winning Candidate
문제
Loading...Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.LeetCode
정답…
members
Leetcode - 570. Managers with at Least 5 Direct Reports
문제
Loading...Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.LeetCode
정답…
Coding Test
members
프로그래머스 - 코딩테스트 연습 - 정렬 - H-Index
문제
https://school.programmers.co.kr/learn/courses/30/lessons/42747
정답
def solution(citations):
for h in range(len(citations) + 1, -1, -1):
if len(list(filter(lambda x:…
Coding Test
members
프로그래머스 - 코딩테스트 연습 - 정렬 - K번째수
문제
https://school.programmers.co.kr/learn/courses/30/lessons/42748
정답
def solution(array, commands):
result = []
for command in commands:
i, j, k = command
result.append(sorted(array[i-1:…
members
Leetcode - 550. Game Play Analysis IV
문제
Loading...Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.LeetCode
정답…
members
Leetcode - 512. Game Play Analysis II
문제
Loading...Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.LeetCode
정답…
members
Leetcode - 569. Median Employee Salary
문제
Loading...Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.LeetCode
정답…