|
Home
»
Interview Questions
|
|
|
|
Latest Activity
|
Given two strings, print all the characters which appears in only one of the strings (char may be repeated in a string, but it should not be present
Comments:
0
What is the difference between MAC address and IP address?
Comments:
4
Total number of squares on a chess boards. Expand your solution to number of rectangles on the board
Comments:
0
fork command is used to duplicate existing process. What is this command and how is it used
Comments:
0
Both TCP & UDP protocols are in Transport layer of TCP/IP protocol suite. What is the difference between the two?
Comments:
0
Given a pointer to the node, write code to find its in-order successor. (Node also stores pointer to the parent node.
Comments:
0
Given a doubly linked list, write a code to reverse the list.
Comments:
0
A Sum-Tree is a Binary Tree where every non-leaf Node is equal to the sum of its child node.
Comments:
2
IPv6 is successor of IPv4 (protocol currently used in almost all the internet traffic). How many addresses are available in IPv6
Comments:
0
Write code to check if a number is a palindrome, ex. 24542 is palindrome, but 5234 is not
Comments:
0
Given a square matrix, print all the elements in diagonal order
Comments:
0
Given a n*n matrix, write code to print both the diagonals (top-left to bottom-right and bottom-left to top-right)
Comments:
0
If two strings are "AB" & "12" then your code should print:
AB12, A1B2, A12B, 1AB2, 1A2B, 12AB
Comments:
0
Where will you find the minimum value node in a Binary Search Tree
Comments:
0
Given an array of m elements, write code to shift all elements forward by k positions (Size of array is sufficient to make the shift).
Comments:
0
Given an array which has only 0s and 1s. write an algorithm to sort the array.
Comments:
0
Write a function which will accept an integer and returns sum of digits in that integer.
Comments:
0
Given a linked list. write code to delete alternate nodes from that list.
Comments:
0
Given a stream of numbers (numbers will keep coming). write code which will print average at each point (after reading each number)
Comments:
0
Give an optimization of bubble sort so that the best case time of bubble sort is bettered
Comments:
0
Design a Stack which holds integers and returns minimum element in Stack in O(1) time.
Comments:
0
difference between infix, prefix & postfix notation (also called polish Notations)
Comments:
0
What is dynamic_cast in C++ and where is it used?
Comments:
0
Given 6 circles arranged in the form of triangle. To invert the triangle, at least how many circles need to be moved
Comments:
0
Given two Binary trees, write code to check if first is a subtree of second
Comments:
0
If base of a Right angled triangle is increased 4 times and height is reduced to half, what will be the effect on its area?
Comments:
0
How much byte-addressable memory you can use with 12 bits address bus.
Comments:
0
If digits of my age are reversed you will get my son's age. Last year my son was half as old as I was. find my current age
Comments:
0
What is the attack called 'Man-In-The-Middle', on the data being transferred over the network
Comments:
0
Given 3 baskets having Apples, Oranges & Mixture. All labeled incorrectly. You can only see 1 fruit from 1 basket and have to correct the labels.
Comments:
0
What is lvalue and rvalue in C/C++ language. what is the difference between the two.
Comments:
0
Write code to calculate the size of a struct in C (or C++) without using sizeof operator
Comments:
0
What are the differences between typedef and #define in C/C++ language
Comments:
0
How will you check if a number is a Fibonacci number or not (Fibonacci numbers are: 0, 1, 1, 2, 3, 5, 8, 13, 21 ... )
Comments:
0
Given the preorder an inorder traversal of a Binary tree, construct the Tree.
Comments:
0
How many null pointers will be there in a binary tree having n nodes
Comments:
0
What will be the output of this given C code. (returning reference of local variables from function)
Comments:
0
Write a program which prints 'Hello World' but does not have any semicolon in the entire program.
Comments:
0
What will be the output (or Error) in the Given C Language program
Comments:
0
Write the code to implement a Stack data structure in C++ using Linked List.. separate the declaration & definition of functions in the class.
Comments:
0
Write code (Algorithm) to convert an expression given in in-fix notation to the corresponding expression in post-fix notation
Comments:
0
Write a function to check if the input string has parenthesis in matched form or not. For example:
()(()) - Matched Parenthesis
(() -
Comments:
1
Write a class such that no user should be able to create object of this class on stack. User should be able to create object on heap.
Comments:
0
Two numbers are given in the form of Linked List (may have different no. of digits). write an algorithm to add these two numbers
Comments:
0
Write an effective O(n) time algorithm to compute the summation: F(x) = Cn.x^n + Cn-1.x^(n-1) + ... ... + C2.x^2 + C1.x + C0. (Hint: Use Horner's Met
Comments:
0
What is the difference between linked list and arrays.
Comments:
0
Write a function to return the number of non-leaf nodes of a binary tree.
Comments:
0
Write a function to convert a Binary tree to its mirror
Comments:
0
Write a function to check if a given linked list is a palindrome or not.
Comments:
0
You have a Bridge that will collapse in 17 minutes & 4 people who takes 1, 2, 5 & 10 min resp. to cross. There is only one torch and only 2 people ca
Comments:
0
|
|
|
|
|
|
|
|
|