sir this question of connecting wires through greedy approach is not taking input for the second vector? can you please tell why?
Connecting wires - code problem
Its showing run time error in the output…! its not running
@archa_1712
pls post the screenshot of the problem.due to some issue i m not able to see the problem
@archa_1712
hello yogendra,
u have declared vector as vector < int> v1;
it declares an empty vector so u cannot do cin>>v1[i] .
to rectify it
a) declare ur vector as vector < int > v1(n); this will create vector of size n
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.