0

How to insert an element at 0th index of an array except to shift all the elements one by one with increasing one size. Please suggest me another approach

Its an logic building problem and I am expecting a better code than mine

4
  • It depends on the type of programming language used. In general a linked list can be a solution Commented Feb 1, 2024 at 16:54
  • I am a beginner coder, so I want to do in C language Commented Feb 2, 2024 at 6:15
  • ` I want to do in C language` - It seems to me that you like it the hard way ;) Commented Feb 2, 2024 at 9:56
  • Does this answer your question? How to implement a linked list in C? Commented Feb 6, 2024 at 13:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.