Technical Interview

Home
Added Recently
Data Structures
Puzzles
Google & Microsoft
C/C++ Questions
Java Interview Questions
Quantitative Problems
Algorithms
Featured Articles
Amazon Interview Question
Compaq Interview Question
Technical Interview
Interview Process
Introduction Questions
Object Oriented
Google Pages
Fundamental Questions
Resume Tips
Links
Contact Us
Submit Question/Answer

Data Structures Questions and Answers for Technical Interviews






 
  • Data Structures Interview Question: Classify the Hashing Functions based on the various methods by ...

  • Data Structures Interview Question: What are the major data structures used in the following areas : RDBMS...


  • Algorithms Interview Question: Given two numbers m and n, write a method to return the first number r that is divisible by both....


  • Tree Interview Question: Write a C program to delete a tree (i.e, free up its nodes)

  • Tree Interview Question: Write a C program to determine the number of elements (or size) in a tree. 


  • C/C++ Data Structures Interview Question:How to create a copy of a linked list? Write a C program to create a copy of a linked list.

  • C/C++ Data Structures Interview Question:How to compare two linked lists? Write a C program to compare two linked lists. 

  • C/C++ Data Structures Interview Question:If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

  • C/C++ Data Structures Interview Question:How would you detect a loop in a linked list? Write a C program to detect a loop in a linked list.

  • C/C++ Data Structures Interview Question:How do you find the middle of a linked list? Write a C program to return the middle of a linked list




  • C/C++ Data Structures: Breadth First Search: Write code for doing a breadth first search in a Tree data structure...



  • Linked List: Loop/Cycle Detection: Given the head pointer to a singly linked list with a loop or cycle in it...






Next Page


 



  • Java Data Structures: Teddy Bears Puzzle: the game starts when I give you some bears. You can then give back some bears...

  • Java Data Structures: binary search of the arrayImplement the body of the following function using a binary search of the array...

  • JAVA Data Structures: spanning Tree: What is a spanning Tree? Does the minimum spanning tree of a graph give...

  • JAVA Data Structures: JAVA: Suppose that I have the following declarations...

  • JAVA Data Structures: JAVA: What are the steps to inserting a new item at the head..

  • Google: arrangement of blocks: You are given N blocks of height 1…N. In how many ways can you arrange these blocks...

    There are four people who want to cross a bridge; they all begin on the same side. You have 17 minutes to get them all across to the other side. It is night, and they have one flashlight. A maximum of two people can cross the bridge at one time. Any party that crosses, either one or two people, must have the flashlight with them. The flashlight must be walked back and forth; it cannot be thrown, for example. Person 1 takes 1 minute to cross the bridge, person 2 takes 2 minutes, person 3 takes 5 minutes, and person 4 takes 10 minutes. A pair must walk together at the rate of the slower person’s pace. For example, if person 1 and person 4 walk across first, 10 minutes have elapsed when they get to the other side of the bridge. If person 4 returns the flashlight, a total of 20 minutes have passed and you have failed the mission.


    What pointer type is used to implement the heterogeneous linked list in C?

    Solution

     

    What is the minimum number of queues needed to implement the priority queue?

     

    Solution 

     


    Which data structure is used to perform recursion? 

    Solution



    What are some of the applications for the tree data structure?

    Solution