How can single vector of input work in this,will it not overwrite the previous edge value with the next one…ex-(0,1) (0,2)…in this how can index 0 both contain 1 as well as 2?
Please answer this
because we can are making array of vector that is why it is not overwriting.
this means that at that index there is array or vector particular which is storing elements.
if you have any doubt you can ask here:
Happy Learning!!
please explain more i dont get it
there is one separate array at every vector value.
like for:
v[0] there is one array and you will put all the elements in this:
in this way it is being done.
Happy Learning!!
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.