Why we initialized left and right to be -1 , we could have kept it uninitialized
Just a silly que
Hey Tushar, can you please mention which problem you are talking about, or if you can share the link of respective code here.
Hi Tushar, you can keep variables uninitialised as long as they get reinitialised in the first iteration. When you don’t initialise a variable of int data type in C++, it automatically gets initialised with default value 0.
1 Like