https://programmers.co.kr/learn/courses/30/lessons/12982
function solution(d, budget) { let sum=0, i=0; d=d.sort((a, b)=>a-b); while(sum<=budget){ sum+=d[i++]; } return i-1; }
10/26
10/26