Merge K sorted array

My code for merge k sorted array doesn’t work. Why?

hello @div_yanshu07

image

this is t0o much space , ur program will give run error due to too much memory allocation.

use n and k to declare array or vector of that particular size and then ur program should work