Topic — Add New » Posts Last Poster Freshness
Infosys Interview Question for Software Engineer/Developer (Fresher) about Puzzle 2 ajaym 2 years

A family X went for a vacation. Unfortunately it rained for 13 days when they were there. But whenever it rained in the mornings, they had clear afternoons and vice versa. In all they enjoyed 11 mornings and 12 afternoons. How many days did they s...

Infosys
Google Interview Question for Software Engineer/Developer about Algorithms 8 ism 7 months

Given a number, describe an algorithm to find the next number which is prime.

Google
Infosys Interview Question for Software Engineer/Developer about Puzzle 3 Kapil 2 years

What is the area of a rectangle whose length is twice its width and whose perimeter is equal to that of a square whose area is 1

Infosys
Infosys Interview Question for Software Engineer/Developer about Puzzle 4 ajaym 2 years

A certain sum of money lent at a certain rate of compound interest grows to 1.44 times its value in 2 years. If the same sum is lent at simple interest at the same rate, in how many years would it double itself?

Infosys
Microsoft Interview Question for Software Engineer/Developer about Data Structure 3 1 year

How to detect cycle in a directed graph?

Microsoft
Microsoft Interview Question for Software Engineer/Developer about Algorithms 3 foobar 11 months

Given a string, print all the English words in the given string. For example if the given string is "abc cat is defg kjklj" then your program should print "cat" & "is"

Microsoft
Give a string, find all the substrings that are palindrome. The lengthes of thes 1 2 years

Give a string, find all the substrings that are palindrome. The lengthes of these substrings have to be odd.

Adobe Interview Question for Software Engineer/Developer about Trees 3 ramu 8 months

Assume that a full binary search tree is represented in an array with the heap like structure, (ie) A[i]'s left child is stored in A[2i) and the right child is in A(2i + 1]. Given an index 'i' return the index of the inorder successor of the eleme...

Adobe
Adobe Interview Question for Software Engineer/Developer about Arrays 2 kartik 2 years

Given an array with some repeating numbers, sort the array according to number of occurrences of characters.

Example 1 : 1, 6, 5, 1, 6, 1 Output 1 : 1, 1, 1, 6, 6, 5
Example 2 : 10 10 2 2 7 7 7 Output 2 : 7 7 7 10 10 2 2

Adobe
NetApp Interview Question for Software Engineer/Developer about Data Structure 2 2 years

Discuss the advantages and disadvantages of using a hash table and a binary tree.

NetApp Interview Question for Software Engineer/Developer about Data Structure 1 2 years

How would you implement the Unix fork() system call. What are the data structures involved in this process?

Yahoo Interview Question for Software Engineer/Developer (Fresher) about Puzzle 11 screamdeaf 10 months

Two trains are on same track and they are coming toward each other. The speed of first train is 50 KMs/h and the speed of second train is 70 KMs/h. A bee starts flying between the trains when the distance between two trains is 100 KMs. The bee ...

Yahoo
Yahoo Interview Question for Software Engineer/Developer about Algorithms 1 geek4u 2 years

Find the longest common subsequence of given N strings each having length between 0 to M. Can anybody give a good approach to the solutions

Yahoo
Cisco Interview Question for Software Engineer/Developer about Algorithms 1 Shekhu 2 years

What data structure would you use to implement a routing table? Suggest optimizations.

Cisco
Microsoft Interview Question for Software Engineer/Developer about Arrays 3 Praveen RAj 10 months

Given a array of random integers, sort the odd elements in descending order and even numbers in ascending order.
e.g. for i/p (1,4,5,2,3,6,7)
O/p = (7,5,3,1,2,4,6)
Optimize for time complexity.

Microsoft
Cisco Interview Question for Software Engineer/Developer about Algorithms 3 11 months

Implement Queue using stack. How many stacks you need? Note that you can only use following functions on a queue.

enQueue() deQueue() isEmpty() isFull()

And your stack should support following operations.
push() pop() isEmpty...

Cisco
[closed] Amazon Interview Question for Software Engineer/Developer (0 - 2 Years) about Bit Magic 7 Venki 1 month

Given an integer x, find out the smallest integer which has same number of set bits as x and is greater than x.

For example if the input integer is 12 (1100) then your function should return 17(10001). If the input integer is 3(11) then y...

Amazon