whats wrong in this code?
Merge k sorted arrays(heap)
why we have to write k and n while declaration of vector?
that would declare a vector with k rows and each row will be a vector of size n.
pls refer this article for all such ways of declaring 2d vector -> https://www.geeksforgeeks.org/2d-vector-in-cpp-with-user-defined-size/
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.