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
- Data Structures
- Stacks
- Equal Stacks
- Discussions
Equal Stacks
Equal Stacks
Sort by
recency
|
1132 Discussions
|
Please Login in order to post a comment
using javascript
Here is my C++ solution:
public static int highest(int s1, int s2, int s3){ return Math.max(s1,Math.max(s2,s3)); }
}
}
int equalStacks(vector h1, vector h2, vector h3) { int n1= accumulate (h1.begin(),h1.end(),0); int n2= accumulate (h2.begin(),h2.end(),0); int n3= accumulate (h3.begin(),h3.end(),0);
}