Question C :- Failed on 2nd testcase Can anyone explain why this code is not working #include using namespace std; #define int long long bool check(vector& b) { for(int i : b) if(i != 0) return false; return true; } void sub(vector& b, int diff) { for(int i=0;i
C seemed easier than B for me .I need to work more on bit manipulation
I agree
Great Explanation Shayan!
Thanks!
Bro your explanations are the best 🤩
Thanks bro, glad you liked it
bro please fix your mic. You are doing great job !
I’ve bought a new mic, but in this livestream I wasn’t at home
nice explanation
Thanks and welcome
Question C :- Failed on 2nd testcase
Can anyone explain why this code is not working
#include
using namespace std;
#define int long long
bool check(vector& b) {
for(int i : b) if(i != 0) return false;
return true;
}
void sub(vector& b, int diff) {
for(int i=0;i
The first😀
😄