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
|
1763 Discussions
|
Please Login in order to post a comment
Please suggest for optimization
annaBill = ((sum(bill)-bill[k]))/2 if b == annaBill: print("Bon Appetit") else: print(int(b-annaBill))
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