Two sum problem

sir, i want to ask ki like isme

int n = size of a/size of int kyu likha hmm seedhe isse

int n declare nhhi kr skte ya hmme seedhe

int n=5 aese declare nhhi kr skte size please tell thoda confusion hai isme???

hi @manishayadav1360_c0939b9a17f994ff
yes if we directly declare n then no need to do size of a/size of int
its use full when we are given an array of unknown size and we need to compute n…

ok got it sir. sir, but can you clarify that why we use j=n-1; like on declaring part n-1 se kyu hoga ???

j=n-1;
what are u referring to??

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.