Is there aomething like a " standard algo" for creating a DS (say linked list) or any algo which serves the purpose is good enough. Should we stick to one algo to create a linked list of size n for competitive coding and coding interviews or is it good to know many algo for creating a linked list of size n. My clg prof. gave this algo in class to create a linked list of size n and I have implemented it. Please check it out and criticize/comment as to why it is/is not a good algo for doing the job(creating a linked list of size n) here is the link to the code:
Aucun commentaire:
Enregistrer un commentaire