[LeetCode] 1518. Water Bottles
·
코딩테스트
leetcode.com/problems/water-bottles/ Water Bottles - LeetCode 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.com 변수 설정 애매하게 해서 돌아돌아 맞춘 정답...🤦‍♀️ class Solution { public int numWaterBottles(int numBottles, int numExchange) { int drink = numBottles; while (numBottles >= numExchange){ drink += nu..