not getting the output wrote two function
findtime for printing the time
and isPossible to check to return true if parantha made in given time mid is greater than required parantha also check main
Please review the code
u are not taking the inputs correctly
int t;
cin>>t;
while(t--){
int p;
cin>>p;
int n;
cin>>n;
int cook[n];
for(int i=0;i<n;i++)
cin>>cook[i];
cout<<minTime(p,cook,n)<<endl;
}
refer this
olease check my code and comment out the mistakes
did u understand this
ki input he glt le rahe the??
i`ll debug the binary search part
yes that was by mistake i think i have corrected that in ide
please check the other part
1 Like
a[n] and not a[1000]
1 Like