X
Submit Question

Yahoo  Questions

View By:

Q1 Middle element in a linked list

Find the middle element in a singly linked list and code it.

Linked List  |  Level - 2

Answer Write Code Visit Question Page

Q2 How to find whether two given trees are exactly similar?

Given 2 trees, find out if they are exactly same or not.

Trees and Graphs  |  Level - 1

Answer Write Code Visit Question Page

Q3 How to print only leaf nodes of a tree?

Given a Tree (not binary Tree), print only leaf nodes on its path from the root.

Trees and Graphs  |  Level - 1

Answer Write Code Visit Question Page

Q4 How to Design a stack which supports push, pop, min and max operations in O(1)?

Design a stack which supports push, pop, min and max operations in O(1).

Data structure  |  Level - 2

Answer Write Code Visit Question Page

Q5 What are the differences between DFS and BFS?

What is the difference between DFS and BFS and compare them in terms of optimality and efficiency

Trees and Graphs  |  Level - 1

Answer Write Code Visit Question Page

Q6 How to find whether the graph is connected and whether it is a tree?

Write a complete program check whether Graph is Connected or Not & also for whether Graph is Tree or not.

Trees and Graphs  |  Level - 2

Answer Write Code Visit Question Page

Q7 How to find whether the graph is connected and whether it is a tree?

How will you find out if the graph is connected or not?

How will you find out if it is a tree.

Trees and Graphs  |  Level - 2

Answer Write Code Visit Question Page

Q8

An array of size 2n, has n unique elements and n occurrences of an element. Find the non-unique element in linear time?

Arrays  |  Level - 3

Answer Write Code Visit Question Page

Q9 How to call a C++ function which is compiled with C++ compiler in C code?

How to call a C++ function which is compiled with C++ compiler in C code?

C++  |  Level - 2

Answer Write Code Visit Question Page

Q10 If you are given the name of the function at run time how will you invoke the function?

If you are given the name of the function at run time how will you invoke the function?

C++  |  Level - 2

Answer Write Code Visit Question Page