How to take input?

How will we take input here?I mean how the create list function will look like in cpp

Hello @darkshadow2708,

You may refer to this link.
It explains the input and output format more clearly.

Hope, this would help.

Can you please show me the create function,i am not able to make the connections properly

Hello @darkshadow2708,

I have a code for create function:

But it is written in java.
Java is very much similar to C++ in terms of syntax.
So, you won’t find any difficulty in understanding the logic.

Let me know if you don’t understand something.

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.