We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Implementation
- Bill Division
- Discussions
Bill Division
Bill Division
Sort by
recency
|
1780 Discussions
|
Please Login in order to post a comment
def bonAppetit(bill, k, b): bill.pop(k) print('Bon Appetit' if sum(bill)//2 == b else b - sum(bill)//2)
Here is my c++ solution you can find the video here : https://youtu.be/MHFroRIBGQc
Solution in Java