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
- Fair Rations
- Discussions
Fair Rations
Fair Rations
Sort by
recency
|
735 Discussions
|
Please Login in order to post a comment
string fairRations(vector B) { string ans; int cnt=0; int n=B.size();
}
Here is my c++ solution: you can watch the explanation here : https://youtu.be/pAzUgM52d60
Whithout the if
C++ Solution:
SWIFT
string fairRations(vector B) { int result=0; int n=B.size(); for (int i=0;i
}