interview questions on doubly linked list
Many times when we face an interview doubly link list questions comes. In this blog we will see some important doubly linked list interview questions. What is doubly linked...
struct and union based interview questions for experienced
Here are some important struct and union based interview questions for experienced. In C language struct and union provides a way to pack different data types under a single...
find longest increasing subsequence using recursion
write a recursive function to find longest increasing subsequence using recursion. For example if we have sequence of { 6, 3, 4, 5, 6, 9, 8 }. The longest...
overload global new and delete in c++
How to overload global new and delete in c++. We can overload new and delete operators globally. These operators also can be overloaded on class by class basis and...
Write C Program to Detect cycle in a linked list
Write a C Program to Detect cycle in a linked list. This is a very basic linked list interview question. Let us see an example, below linked list (figure...
find maximum path to reach from source to destination
Given a directed graph and two vertices ( source and destination ), find maximum path to reach from source to destination. For example in the below directed graph if...
Graph coloring backtracking problem
You are given an undirected graph and two colors, black and white. write a program to find the maximum number of nodes that can be colored with black such...
write c program to check if one string is permutation of another string
write c program to check if one string is permutation of another string. This is a simple interview question for a programmer. For example if one string is “hello”...
what is difference between c and cpp
what is the difference between c and c++? explain it with example. Let us try to compile below sample code with gcc and g++. #include<stdio.h> int main () {...
extern keyword in c programming interview questions
extern keyword in c programming language is a keyword which directs the compiler that a variable prefix with extern is only a declaration. I think somebody who will read...