You are viewing a single comment's thread. Return to all comments →
*(a+c)+=g; if(d+1<=n){ *(a+d+1)-=g; }
please explain what's going on here.
This is a very elegant and beautiful solution.
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
*(a+c)+=g; if(d+1<=n){ *(a+d+1)-=g; }
This is a very elegant and beautiful solution.