## Forum Posts

- 0 Answers
**rejected by amazon for no reason**got rejected, I think I did well for all rounds, maybe not behavioral questions. They didn't give any feedback.

- ly October 21, 2017

the questions were not hard at all.

one round, I only got asked behavioral questions for 45 mins. really not that much to say

disappointed| Flag | PURGE - 0 Answers
**Data Structure and Search Design**Question:

- Learneralways August 18, 2017

You are given an information on Cat object such as name,height and weight. For eg following:

String[] names = {"a","b","c","d","e","f","g","h"};

Integer[] height = {31,24,67,12,45,21,31,12};

Integer[] weight = {120,124,160,130,175,120,124,142};

You have to write a method which takes the following input and return the list of Cat objects which satisfies the input criteria. For eg

searchCriteria could be : HEIGHT or WEIGHT

searchValue could be : Integer value of either HEIGHT or WEIGHT

symbol could be : "<" , ">", or "="| Flag | PURGE - 0 Answers
**Is Amazon Joking Around?**Amazon is known for its tough tech screening rounds but even if you nail those technical question with best possible solution, are you getting screwed??

- hprem991 August 04, 2017

Before this experience, I would have said NO but now it is looking different..

I was being picked up by their recruiter and asked to present myself for phone screening as they liked my experience (thats what they said ).

Now, I wouldnt mind.. being the fact that I am doing great in what I am doing.. its just a 1 hour call.

Well, call lasted for like 55 mins.. Was asked 2 algorithmic questions with code and follow ups and some pretty team / experience related question..

I nailed the tech rounds so much that the interviewer said, I got questions done with most optimal solutions and of course before time.

So, if they liked my experiences ( thats what they said they called me at first place).. Did they rejected me for same experience or Amazon interview has become a joking ground now?

Any thoughts??| Flag | PURGE - 1 Answer
**Design a FIDS(Flight Information Display System)**1. Consider most important classes & ignore Interfaces as of now

- AD August 04, 2017

2. FIDS is not about reservation system but the dasboard to display

3. the information will look like:

DEPARTURES

----------------------

Attributes:

STD, Airline,Flight#,Destination/Via,CheckInCounter#,Gate,Status,ETD

Values :

12:50,KingFisher,6E352,Hyderabad,A-B,23,Check-In Open,13:15

ARRIVALS

-----------------------

Attributes:

STA,Airline,Flight#,Destination/Via,Gate,Status,ETA

Values :

12:50,KingFisher,6E352,UK/Mumbai,Terminal2,Landed,13:15| Flag | PURGE - 0 Answers
**Minheap: TLE**The following is my code for MinHeap. But it is showing TLE for some input. Can someone please help me figure out where?

- ranjani4ever July 14, 2017

#include <cmath>

#include <cstdio>

#include <vector>

#include <iostream>

#include <algorithm>

using namespace std;

void swap(int *a,int *b){

int temp=*a;

*a=*b;

*b=temp;

return;

}

void heapify(vector<int> &heap,int index)

{

int length=heap.size();

int min=index;

int left=(index<<1)+1;

int right=(index<<1)+2;

if(left<length&&heap[left]<heap[min])

min=left;

if(right<length&&heap[right]<heap[min])

min=right;

if(min!=index)

{

swap(&heap[index],&heap[min]);

heapify(heap,min);

}

}

int main() {

int t,n;

string op;

scanf("%d",&t);

vector<int> heap;

while(t--) {

cin>>op;

//cout<<"Currently analysing"<<op<<"\n";

if(op=="insert") {

scanf("%d",&n);

heap.push_back(n);

int i=heap.size()-1;

while (i!=0&&heap[(i-1)>>1]>heap[i])

{

swap(&heap[i], &heap[(i-1)>>1]);

i =(i-1)/2;

}

}

else if(op=="getMin") {

if(heap.size()>0)

printf("%d\n",heap[0]);

else

printf("Empty\n");

/*for(int i=0;i<heap.size();i++)

cout<<heap[i]<<" ";

cout<<"\n";*/

}

else {

if(heap.size()>0)

{

heap.erase(heap.begin());

heapify(heap,0);

}

}

}

return 0;

}| Flag | PURGE - 0 Answers
**Amazon question**At Amazon.com, users log in and access random pages numbered as 1,2,3… Given at any time, you need to tell the most popular sequence of 3 pages visited by users.

- yeswanth June 28, 2017

Eg.

At some time t,

U1: P1, P2, P3, P8, P1, P2

U2: P8, P1, P2

O/P: P8, P1, P2

At time t+1, say

U1: P1, P2, P3, P8, P1, P2, P3

U2: P8, P3, P2

O/P: P1, P2, P3| Flag | PURGE - 0 Answers
**Can anyone explain me the example problem and suggest me an approach to solve this**An enrollment analyst working in a top healthcare ﬁrm has to onboard genuine healthcare providers into the system by calculating the overall risk score associated with the provider. In general, if they had committed fraud, then, their associated risk score will be high. To calculate the provider's overall risk score, the analyst has to identify the risk score impact from the healthcare provider's direct social relationships. i.e. The analyst considers the risk scores associated with the healthcare provider's direct social influences (Blood relations, Friends, Professional relations) and arrives at the overall risk score for the healthcare provider.

- iranireshma8 June 28, 2017

The social influences can be one of the below three:

a. Blood relation (impacts the overall healthcare Provider risk score by 80%) b. Friend (impacts the overall healthcare Provider risk score by 60%) c. Professional relation (impacts the overall healthcare Provider risk score by 40%)

i.e. if a healthcare provider carries a particular risk score say 100; his direct social influence - one of his friends carry a risk score of 100; In order to calculate the overall risk factor of the healthcare provider, his risk score is added with 60% of his friend's risk score. 60% because the relationship is a Friend. The overall risk score of healthcare provider = (Healthcare Provider's risk score) 100 + (60% of his friend's risk score) 60 = 160. It will be 80% in case of blood relation and 40% in case of a professional relationship.

Note:

To calculate the healthcare provider's overall risk score, you will only consider the impact of his social influences on him. The impact of healthcare provider's existing risk score on his social influences should not be considered.

Say for example, a healthcare provider's friend has a professional relationship with another person who has committed fraud; then, the friend's risk score will be impacted by his direct professional relationship by 40%. And this friend's overall risk will impact the healthcare provider by 60%. In order to calculate the over all risk score associated with the healthcare provider, ﬁrst, the risk score associated with his friend has to be calculated. Since his friend is directly impacted by his professional relationship, the risk associated with that professional relationship has to be ﬁrst calculated and so on.

It is important to note both the healthcare provider and his friend's risk impact on others will not be considered while calculating the overall risk score of his friend.

Input Format: You will be given a function which contains 3 arguments - Argument 1 will represent the relationship between the individuals.A:FRIEND:B#B:BLOOD_RELATION:C means A is a friend of B and B is a blood relation of C. Argument 2 will represent the risk value of each individual. A:100#B:50#C:10 means, A's risk value is 100, B and C has 50, 10 respectively. Argument 3 will represent the individual's name for whom the overall risk score has to be calculated, by considering his social influences.

Output Format: You need to return the risk score of that individual mentioned in the 3rd argument and it will be a floating point (decimal) value, rounded to 2 decimal places in the form of string.

Sample Test Case Sample Input: A:FRIEND:D#A:BLOOD_RELATION:B#A:PROF_RELATION:C#B:PROF_RELATION:C#B:FRIEND:D#D:PROF_RELATION:C A:100#B:100#C:100#D:100 C

Sample Output: 485.60| Flag | PURGE - 0 Answers
**Question**There are around 40 million files in a directory which needs to be transferred to another system via FTP in order of oldest file first. What's the ideal way to iterate over files and store it in a data structure from where it can be transferred?

- anjesh June 12, 2017| Flag | PURGE - 0 Answers
**qwrew**A mission-critical production system has n stages that have to be performed sequentially; stage

- tanvirmahmud201505039 June 08, 2017

i is performed by machine Mi. Each machine Mi has a probability ri of functioning reliably and

a probability 1 − ri of failing (and the failures are independent). Therefore, if we implement

each stage with a single machine, the probability that the whole system works is r1 · r2 · · · rn.

To improve this probability we add redundancy, by having mi copies of the machine Mi that

performs stage i. The probability that all mi copies fail simultaneously is only (1 − ri)mi, so the

probability that stage i is completed correctly is 1 − (1 − ri)mi and the probability that the whole

system works is Qni=1(1 − (1 − ri)mi). Each machine Mi has a cost ci, and there is a total budget

B to buy machines. (Assume that B and ci are positive integers.)

Given the probabilities r1, . . . , rn, the costs c1, . . . , cn, and the budget B, find the redundancies

m1, . . . , mn that are within the available budget and that maximize the probability that the

system works correctly| Flag | PURGE - 0 Answers
**Designing a data-structure**We need to implement a data-structure for following functions

- arnav251035 May 29, 2017

Insert X : Insert an element X into the set.

Delete X : Delete an element X from the set. It is guaranteed that such X always exist in the data structure.

Mean : Report Mean of the elements present in the data set. It is guaranteed that data structure will not be empty at this query.

Mode : Report Mode of the elements present in the data set. It is guaranteed that data structure will not be empty at this query.

Median : Report Median of the elements present in the data set. It is guaranteed that data structure will not be empty at this query

I had created a linked list of the values, and like insertion sort I inserted the elements in the Linked List. Deletion was also the same as deletion in Linked List. Mean I calculated on the run as and when the values came. For mode I traversed the whole linked list to see which element occurs the most. Median was the middle element in the linked list.

I know there is an efficient algorithm to calculate median on the run using two heaps (min and max) but calculating mode was the biggest problem I faced. The number of queries ranged to 10^5 and the time limit was given 3 secs. Had a TLE error| Flag | PURGE - 0 Answers
**6 to 8 months project ideas to build up résumé**Hello,

- otto.alyz April 18, 2017

I'm planning to go through big IT companies interviews (basically the GAFAs) in 8 months from now, and I would like to get some suggestions about ideas of projects I can work on to present during my interviews and build up my résumé.

I ideally looking for a project that would make me practice the OOP principles like SOLID, as well as other things like scalability, algorithms and data structures and so on.

Thanks in advance for your suggestions.| Flag | PURGE - 0 Answers
**Amazon Rejection**Hi All,

- mourya.rohit32 April 10, 2017

The day before yesterday, I got rejected from Amazon in the final round for SDE-T. Though I was more interested in SDE.

All the rounds were quite easy for me and I solved all the questions. However in the last round, I knew both the questions but failed to arrive to a good solution. I knew the correct data structure which can be used to get O(n) solution however, I failed to code it and thus I was eliminated.

My question is, are there any chances for getting call from Amazon based on my interview answers for SDE in future or I've to wait for 6 months and again apply for SDE position.?

Any response would be welcome.

Thanks,

Rohit| Flag | PURGE - 0 Answers
**Request for assistance - Was interviewed by Amazon no information after telephonic round**Hi there,

- Madhulika.NYC April 03, 2017

I was interviewed by Amazon. I thought I did very well in the telephonic round. I think the interview went on for more than an hour. The interviewer did say that someone will contact me, but no one had contacted me since then.

When I checked my status at amazon job application site it shows Accepted - In Progress. I don't know how long to wait for.

Could someone please assist me?| Flag | PURGE

**CareerCup**is the world's biggest and best source for software engineering interview preparation. See all our resources.

Open Chat in New Window