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
|
1781 Discussions
|
Please Login in order to post a comment
Here is my c++ solution you can find the video here : https://youtu.be/MHFroRIBGQc
java(8)
def bonAppetit(bill, k, b): bill.pop(k) print('Bon Appetit' if sum(bill)//2 == b else b - sum(bill)//2)