Do we need to create separate class for ds problems?

How are we supposed to data structures problems?? Do we need to create separate stack and queuees meaning extra clasees for them? Or do we solve them using arrays only

@prasadnitesh202,
Yes you need to create a separate class for each data structure and create objects of that class while solving. Or you can use the in-built Java Collection framework and use classes such as stack queue from the collection framework.

Although the first approach is preferred especially while you are practicing.

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.