Why int ans is initialised to -1 and not 1.
Why ans initialised to -1
hello @ayusdas2000
the required answer is equal to= - 1* (n+1)^p-2 * (n+2)^p-2…
becuase of this -1 ,we are intialising our ans variable with -1.
thank you understood
Why int ans is initialised to -1 and not 1.
hello @ayusdas2000
the required answer is equal to= - 1* (n+1)^p-2 * (n+2)^p-2…
becuase of this -1 ,we are intialising our ans variable with -1.
thank you understood