ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
How is it different than the first approach perhaps the if condition Both have same complexity
Hi sir we can give likeIf(sum=arr(i) +arr(j+1)Then we can print i and j
Still you are using 2 loops for it will decrease the performance.
Thank you Sir
How is it different than the first approach perhaps the if condition
Both have same complexity
Hi sir we can give like
If(sum=arr(i) +arr(j+1)
Then we can print i and j
Still you are using 2 loops for it will decrease the performance.
Thank you Sir