Heap
-
[자료구조] [heapq] Jesse and CookiesData miner/Algorithm & Data structure 2021. 2. 9. 18:30
다음의 문제는 heapq을 활용해서 푸는 문제에 해당한다. Hackerrank의 Data structures 관한 문제 중에서 Easy에 속하는 문제이다. 원 문제 링크는 다음을 따라가보자. www.hackerrank.com/challenges/jesse-and-cookies/problem Jesse and Cookies | HackerRank Calculate the number of operations needed to increase the sweetness of the cookies so that each cookie in the collection has a sweetness >=K. www.hackerrank.com "전체 쿠키의 당도 정보가 포함되어 있는 리스트중에서, 전체 쿠키가 만족시켜야..