코테

· CodingTest
환경 JavaScript 개요 LeetCode에서 코테하기 문제 간단 요약 1. 사람들에게 사탕이 N 개라면 을 1~N개까지 계속 +1 씩 해서 나눠줍니다. 2. N명 까지 나눠주었는데 사탕이 남았다면 처음 사람에게 또다시 나눠줍니다. 3. 사탕이 다 떨어졌어도 받을 인원이 남았다면 0으로 채워줘야 합니다. -> 추가 설명은 영문 참조 We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy to the first person, 2 candies to the second person, and so on until we give n candies to the ..
tenchoi
'코테' 태그의 글 목록