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
|
1762 Discussions
|
Please Login in order to post a comment
Java Solution
Hi there! Here's my Java solution for the challenge.
https://github.com/eduardocintra/hacker-rank-solutions/blob/master/src/br/com/eduardocintra/easy/billdivision/BillDivision.java
JavaScript
Here is my c++ solution you can find the video here : https://youtu.be/MHFroRIBGQc
Python
count=0 total =0 bill.remove(bill[k]) for i in bill: count += i if b==count/2: print("Bon Appetit") else: total=int(b-(count/2)) print(total)