How am I supposed to take such input as the size of the array is not defined. I have tried using getline but then it is not able to extract the correct values into the array from the string used
How to take input
I have build the entire algorithm but the input part is not working for all the test cases please help