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.
- All Contests
- HourRank 27
- Impressing the Boss
- Discussions
Impressing the Boss
Impressing the Boss
Sort by
recency
|
59 Discussions
|
Please Login in order to post a comment
I iterate through the sales data array and check if there exists any consecutive pair of years where the sales decrease. If I find such a pair, I have tried modifying one of the elements to make the sales increase. If there are more than one such pairs or if modifying any of the elements does not result in increasing sales, then it is not possible to present the annual sales graph as required
CAN SOMEONE CORRECT IT import java.io.; import java.math.; import java.text.; import java.util.; import java.util.regex.*;
public class Solution {
}
my code code worked for many custom test cases . suggestions if any is appreciated
include
include
using namespace std; int main(){ int row,count1=0,max1=0; cin>>row; vector> myvector(row); for(int i=0;i>col; myvector[i]=vector (col); for(int j=0;j>myvector[i][j]; }
}
hi anyone post the solution in java..