[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Interview Questions and Answers :: Data Structure

    1 / 72

    What are the types of data structure you know, explain it.
    Answer:

    There are two types of datastructure.



    1).Linear data structure



    2).Non Linear datastucture.



    For example linear datastructure are stack queue and link list



    Non linear datastructure are tree

    Please Login First :

    2 / 72

    What array, linked list? What are major difference ?
    Answer:

    Array is an indexed based sequential datasture which is stored contigous memory locations . It is mainly used when the operation is searching of element from the list.



    Link list is a sequential datastructure which consists of nodes located at non contigous memory locations. It is used when the operation is insertion and deletion.

    Please Login First :

    3 / 72

    What is stack and queue?
    Answer:

    Stack is a sequential datastructure which will follow last in first out (LIFO) rules. The mainly operations of stack are : push pop peer empty and full.



    Qeque is also a sequential datastructure which will work on First In First Out(FIFI) . It is the datastructure with restriction that the insertion will be performed from one end and deletion from the another end with help of front and rear. The mainly operations will be performed are : enque and deque operations .



    We can implement both by using an array (i.e. static implementation ) and another is using linklist that is dynamic implementation.

    Please Login First :

    4 / 72

    What is circular linked list ?
    Answer:

    In circular linked list , every node links to next node in the list except the last node that links to first node of the list. It is similar to single linked list except that last node is connected to the first node.

    Please Login First :
    Answer:

    No Discussion on this question yet!

    Please Login First :
    Answer:

    Priority Queue is an extension of

    Please Login First :

    7 / 72

    Write a structure of doubly linked list?
    Answer:

    Struct Node{



    Int data;  //datafield



    Struct  Node* next;//address field of                     the next node



    Struct Node*prev;//address field of                    the previous field



    }Struct Node node;

    Please Login First :
    Answer:

    No Discussion on this question yet!

    Please Login First :

    9 / 72

    What is a self referencing pointer?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    10 / 72

    Draw the nodes of doubly linked list?
    Answer:

    No Discussion on this question yet!

    Please Login First :