Sort by

recency

|

1285 Discussions

|

  • + 0 comments
    fun chocolateFeast(money: Int, cost: Int, m: Int): Int {
        // Write your code here
        var total = 0
        var eaten = 0
        total = money / cost
        eaten = total
        var wrappers = total
        do{
            total+=wrappers / m
            wrappers = wrappers % m
            wrappers = wrappers + (total - eaten)
            eaten = total
        }while(wrappers >= m)
        return total
    }
    
  • + 0 comments

    A relevant issue regarding the "Chocolate Feast" item on the Subway menu with prices could be centered around pricing transparency subway menu with prices and nutritional clarity. Many customers have reported that while the Chocolate Feast sounds appealing as a dessert option, it’s not always available at all locations, and prices can vary significantly by region. Additionally, the item may lack clear labeling regarding portion size, calorie count, and ingredients—especially important for those with dietary restrictions or allergies.

  • + 0 comments
    def chocolateFeast(n, c, m):
        # Write your code here
        baught = n // c
        wrappers = baught
        while wrappers >= m:
    
            baught_with_wrappers = wrappers // m
            baught += baught_with_wrappers
            wrappers = wrappers % m
            wrappers += baught_with_wrappers
        
        return baught
    
  • + 0 comments

    Here is problem solution in python, Java, C++, C and Javascript - https://programmingoneonone.com/hackerrank-chocolate-feast-problem-solution.html

  • + 0 comments

    def chocolateFeast(n, c, m): count = n//c k=count while(k>=m): count += (k//m) k=((k)//m)+ (k%m) return count to hire personal care contract manufacturer