Topic — Add New » Posts Last Poster Freshness
data structures : amazon 1 abzx12@gmail.com 10 hours

Given numbers 1 to 1000, suggest a data structure to store them such that following operations can be executed in constant time:
1- insertion,
2- deletion,
3- searching,
4- get_any_number (means return any number if present...

How to find out the position of a msb in a number? 1 PsychoCoder 13 hours

Running time as faster as you can. Logarithmic time expected !!

Do not use in built log function or __builtin_clz

Amazon placement 2 kartik 1 day

You are given a linked list. Apart from the normal "Next" pointer, there is one more pointer(random ptr) in each node which points to some random node of the list. How will you create a clone of such a list? (In less than O(n^2))

Amazon online written test @ DCE 1 mukuljain.dtu 1 day

1. Write a function isValid(int sudoko[][]) to chec whether a given sudoko solution is valid or not.

2. You are given a paragraph in which the length of all the words in a line has following properties:
odd position words are ...

MindTree Interview Question for Software Engineer/Developer (Fresher) about Algorithms 1 kartik_patil 2 days

Given a log file that contains latency for each request of an API, how to calculate the median of the API latency?

MindTree
MindTree Interview Question for Software Engineer/Developer (Fresher) about Algorithms 1 kartik_patil 2 days

Given a log file that contains latency for each request of an API, how to calculate the median of the API latency?

MindTree
Amazon Interview Question for Software Engineer/Developer about Algorithms 1 kartik 3 days

\Round5 | Q2 : Suppose, Amazon have a Logging system Like This:

They Track all logs daily basis, stored in separate log file.Log contains a collection of tuples of Customer ID and Page ID. The length of Customer ID and Page ID is L1 and L2....

Amazon
Google Interview Question for Software Engineer/Developer about Aptitiude 1 Shekhu 4 days

If you are given infinite supply of resources and money, what will you do in software. Why? Key criteria and key benefits please.

This is not algo question, but has been asked in Google as well as MS.

Google
Describe how to get the top k queries from a search log of terabytes of data. 2 kartik 4 days

Describe how to get the top k queries from a search log of terabytes of data. Memory/Disk per machine is limited but you can use multiple machines.

Amazon Interview Questions about Designing System 2 vikram.kuruguntla 6 days

Customers want to buy some products but the products are out of stock, design a system to notify them when those products are again available.

Design, display a customer's friends list who also bought the product he is curently looking at...

Amazon Interview Question for Software Engineer/Developer about Trees 5 atul007 6 days

you have two BST , they contain the same amount of elements "N" but there structure is different. how will you cross check that the trees are identical with complexity O(N). Also how will you do the same in case its only Binary tree and not a Bina...

Amazon
Interview Question about Algorithms 5 camster 1 week

Find the second non repeating element in an array.

Interview Question about Algorithms 9 atul007 1 week

suggest an algo which will find all longest increasing sub sequence of length K.

for eg:-
input : 7 8 9 4 10 11
K=3

output :
7 8 9
7 9 10
7 10 11
8 9 10
8 10 11

desired complexity : O(...

Microsoft MBD interview question 3 PINTUGUPTAJUIT 1 week

You have given some plates. Width of each plate is different. Plate is arrange like stack. The only operation you can do is Flip. from upward you can go on any plate and flip that. You have to arrange the Plates in sorted order.Do it in Minimum ti...

Microsoft MBD interview question 4 PINTUGUPTAJUIT 1 week

you have given two large array of unlimited Memory. Each array contain single digit number. You can move only in forward direction in array. You have to created a 3rd array which contain sum of digit of 1st and 2nd array.The condition in array is ...

Amazon Hyderabad Interview Question 7 dheerajsharma1990 1 week

Reverse a binary search tree in such a manner so that parent child relationship maintained and left child become right child and vice versa.

Find the minimum and maximum element in stack in O(1).

given an array find the next minimum ...

Amazon Hyderabad Online Written 1 gupta5035 1 week

Please write a version of the unix utility "wc" in the language of your choice. You can expect the input to be a set of strings from STDIN

Sample Testcases:

Input #00:
aaa
fff

Output #00:
2 2 8

Explana...