Topic — Add New » Posts Last Poster Freshness
Amazon Interview Question for Software Engineer/Developer about Data Structure 5 PsychoCoder 11 hours

What kind a data structure will you use to implement an Instant Search feature.

Amazon
inheritance 4 vikram.kuruguntla 4 days

implementing stacks and queues using inheritance from linked list???

Adobe Interview Question for Software Engineer/Developer (Fresher) about Aptitiude, Arrays, Data Str 5 PINTUGUPTAJUIT 1 week

Predict the Output:

#include<stdio.h>
void main()
{
        char ch1[]="hello", ch2[]="hello";
        if (ch1==ch2)
                printf("Equal\n");
        else
                printf("Unequal\n");
}

I executed this on Linux terminal and got the answer as Unequal. Can anyone please explain how this is happening?

Adobe
Data Structures Types 1 bharti 1 week

What is the difference between an ORDERED and UNORDERED data structure?

Adobe Interview Question for Software Engineer/Developer (2-5 Years) about Algorithms, Arrays, Data 1 pb 3 weeks

How do you partition an array into 2 parts such that the two parts have equal average?...each partition may contain elements that are non-contiguous in the array....

Adobe
Advice needed. 3 ishitva 3 weeks

Please suggest a good book for practicing problems on Data Structures. I need to work very hard in this area.

Microsoft Interview Question for Software Engineer/Developer about Algorithms, Data Structure 1 prince 3 weeks

Suppose you are a search engine owner and want to show adv to make money. How will you filter the advertisements to be shown when users searches for something. Take into consideration that advertisers will not be interested in showing adds to all geographical locations and some types of add may be banned in some locations.
For eg : There is a alcohol selling company. Now alcohol adv is banned in india so this advertisement should not be shown. Also an adv in India might not want to show...

Microsoft
Microsoft Interview Question for Software Engineer/Developer (Fresher) about Data Structure 2 Aashish Barnwal 3 weeks

Implement a Queue using a Stack ADT. He told me to write “tight” code for this as well. He wanted optimized methods for this, and asked me to enumerate different ways of optimizing this data structure, and to analyze each one. After I did that, he asked me whether my code would handle multiple simultaneous access to the data structure, and asked to handle that case as well.

Microsoft
Microsoft Interview Question for Software Engineer/Developer (Fresher) about Data Structure 2 Aashish Barnwal 3 weeks

Design a data structure which will support the following operation : given a seven letter word, return all valid words which are anagrams of this word. He wanted a data structure which would be optimized for space, and another one optimized for time.
Write the code to implement the aforementioned function given the data structure.

Microsoft
Amazon Interview Question for Software Engineer/Developer about Data Structure 3 abhishek 1 month

data structure TO use to design a phonebook. What is time complexity for retrieving, adding etc

Amazon
Adobe Interview Question for Software Engineer/Developer (Fresher) about Algorithms, Aptitiude, C++, 3 beacon 1 month

Given 2 trees A and B find if tree B is a subtree of Tree A or not. Provide the most optimized solution that you can think of.

Adobe
Adobe Interview Question for Software Engineer/Developer (Fresher) about Aptitiude, Arrays, C++, Dat 3 remo 1 month

Predic the output of the following code snippet.

main()
{
char *ch1 = "Rajesh";
char *ch2;
ch2 = (char *)malloc (20);
memset (ch2.0.20);
while (*ch2++ = *ch1++)
printf("%s\n",ch2);
}

The answer is empty output or no output. I executed this on Linux terminal but it shows a few blank lines followed by the Prompt.

Can anyone please explain what this function is trying to do and why do we get a few blank l...

Adobe
Adobe Interview Question for Software Engineer/Developer (Fresher) about Algorithms, Arrays, Data St 1 Shubhra 1 month

Given a Binary Tree and its depth d find the number of leaf nodes in that tree.

Note - In Geeks for Geeks the solution given for this problem is a recursive one without using any depth, but here in this question we need to make use of the depth d in some way to give the solution.

Adobe
FlipKart Interview Question for Software Engineer/Developer (Fresher) about Algorithms, Data Structu 8 Gaurav 1 month

Given The Linked List remove the all duplicates elements from it while order should be maintained i mean 3-1-2-1-2 so o/p should be 3-2-1 e.g order of linked list shouldn't be broken & we have to
return the original linked list without duplication

Only O(N) or strictly less then O(N^2) Solution Required.

FlipKart
[closed] Amazon Interview Question for Software Engineer/Developer (Fresher) about Data Structure 6 geeksforgeeks 2 months

find the longest repeated substring given an input string. eg. given "banana" you should find "anana"

Amazon
[closed] Google Interview Question for Software Engineer/Developer (Fresher) about Algorithms, Data Structure 12 geeksforgeeks 2 months

Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for “abcabcbb” is “abc”, which the length is 3. For “bbbbb” the longest substring is “b”, with the length of 1.

hope example is correct??

Google
Google Interview Question for Software Engineer/Developer about Data Structure 11 Bond 2 months

Design a data structure that can be used instead of an array and avoids the "high-cost" (i.e. O(n)) of initializing the array. the data structure ought to holds n items and supports the following operations in O(1) time:
* Init – Initializes the data structure to empty.
* Set(i, x) – Sets item x at index i in the data structure.
* Get(i) – Gets the item stored in index i (or 'empty' if nothing is there).
Remark: the data structure should use O(n) space.

Google