PAPARAZZI GENNADY 100 POINT FULL SOLUTION IN C++ : • PAPARAZZI GANNADY || 100 Point Confirm || ...
College Life 4 Full 100 Point Solution : • COLLEGE LIFE 4 || 100 POINT CONFIRM || Cod...
Interesting Xor 100 Point Optimized : • Interesting XOR Optimized Solution || 100 ...
College Life 4 Loop Based Solution : • College Life 4 Loop Bases Solution
Space Arrays : • Space Arrays || 100 Point || SPACEARR || ...
College Life 4 Greedy Approach : • College Life 4 Greedy Approach | Full Solu...
College Life 4 : • College Life 4 || COLGLF4 || Codechef Marc...
SPACE ARRAYS : • SPACE ARRAYS || SPACEARR || Codechef long ...
Interesting Xor : • Interesting Xor || IRSTXOR || Full Solutio...
Chef And Groups : • Chef And Groups || Codechef Long Challenge...
No Time To Wait : • No Time To Wait || Approach, Idea, Code wi...
March Long Challenge 2021 Solution Full Playlist : • MARCH LONG CHALLENGE 2021 😍😍😍 No Time To Wait || Approach, Idea, Code with Test Cases
NO TIME TO WAIT
READ QUESTION ACCORDINGLY YOU
N,H and x given
N -) no. of T values available
H -) Required Time or say this as target
x -) Remaining time
So according to this question we have to find if it is possible or not to ans a question
SEE APPROACH
take n,h and x;
then take n input as in array or vector
iterate through the array and find
weather
array[i]+x greater than or equal to H if yes PRINT YES
and no THEN PRINT NO at the and of full iteration
INPUT
2 5 3
1 2
OUTPUT
YES
2'nd Test Case
2 6 3
1 2
ans = NO
READ QUESTION ACCORDINGLY YOU
N,H and x given
N -) no. of T values available
H -) Required Time or say this as target
x -) Remaining time
So according to this question we have to find if it is possible or not to ans a question
SEE APPROACH
take n,h and x;
then take n input as in array or vector
iterate through the array and find
weather
array[i]+x greater than or equal to H if yes PRINT YES
and no THEN PRINT NO at the and of full iteration
INPUT
2 5 3
1 2
OUTPUT
YES
2'nd Test Case
2 6 3
1 2
ans = NO
THANK YOU
KEEP CODING
KEEP LEARNING :)))))))))))