Forum Posts
- 0 Answers Amazon Interview question
Suppose your team needs to launch a new recommendation feature called “Stuff Your Friends are Buying”. The recommendation logic is based on the following rules:
- nikitaamalhotra1991 March 28, 2014
• A customer should only be recommended product that their friends bought but they haven’t bought.
• The recommendations priority is driven by how many friends have purchased the same item – if multiple friends purchased the same item, it should be higher in the recommendations than a product that only one friend owns.
You are provided two library functions to help you
• getFriendsListForUser – returns a list of customer IDs (strings that uniquely identify an Amazon user) representing the friends of an Amazon user
• getPurchasesForUser – returns a list of product IDs (strings that uniquely identify an item in the Amazon catalog) for an Amazon user ordered by purchase time with newest purchase first in list and oldest purchase last in list
For this evaluation, please:
1) Write a function that provides a ranked (high to low) list of recommendations (product IDs) for a provided user.
2) Write code for a few key unit tests for your code.
3) Enumerate other unit test scenarios (code not required).
4) Provide the space and time complexity of your solution.| Flag | PURGE - 0 Answers morgan stanley interview
i want to know about morgan stanley interview question.it is hard like amazon, facebook and google or too much simple like infosys and tcs.
- anonymous March 27, 2014
i want to prepare for morgan stanley so can any one tell me difficulty level of interview ?
any tips or experiences would be greatly appreciated!| Flag | PURGE - 1 Answer Salesforce Interview(Software/QA Engineer)
Could anyone share their experience with the salesforce interview? Specifically the remote coding test and also the onsite interview?
- Liondancer March 24, 2014
I want to prepare as much as I can for the coding test so knowing previous questions asked is a big plus!
Thank you! Much Appreciated!| Flag | PURGE - 2 Answers Salesforce Interview(Software/QA Engineer)
Could anyone share their experience with the salesforce interview? Specifically the remote coding test and also the onsite interview?
- Liondancer March 24, 2014
I want to prepare as much as I can for the coding test so knowing previous questions asked is a big plus!
Thank you! Much Appreciated!| Flag | PURGE - 1 Answer Books for System Design and ML Interviews
I interviewed with Google last week after preparing with Gayle's CTCI book. The recruiter got back to me and said they'd like to have a couple of follow-up interviews focusing on System design and my domain expertise (Machine learning). Any suggestions on books to prepare for these interviews?
- qwanta2 March 23, 2014| Flag | PURGE - 0 Answers Books for System Design and ML Interviews
I interviewed with Google last week after preparing with Gayle's CTCI book. The recruiter got back to me and said they'd like to have a couple of follow-up interviews focusing on System design and my domain expertise (Machine learning). Any suggestions on books to prepare for these interviews?
- qwanta2 March 23, 2014| Flag | PURGE - 1 Answer I want to know algo for below problem
you are given 3 values say a, b and x.
- amlogin026 March 19, 2014
you can perform 3 ops:
X-> a=a+b
Y-> a=a-b
Z-> b = a-b
now performing these ops on a and b you have to get value x in var a.
ex: a = 19, b = 7, x = 27
if you perform YZXXX on a and b you will get a = 27.| Flag | PURGE - 0 Answers WiFi/WLAN - Testing & Development
1. 3+ years of experience in WiFi/WLAN testing & strong networking domain understanding.
- jyotimahadik March 18, 2014
2. Knowledge of IEEE Standard 802.11 a/b/g/n.
3. Working knowledge of TCP/IP, UDP, RADIUS, NTP, SNMP protocols.
4. Knowledge of DHCP, DNS, NAT, WLAN fundamentals.
5. Security (IPSEC/EAP-SIM/EAP-AKA) with IMS /LTE Network and/or Working Knowledge of AAA interface using Radius & GTP Protocol will be added advantage.
6. Hands-on experience of Unix and Windows.
7. Exposure to tools like wireshark, iperf, omnipeak, veriwave etc.
8. Excellent debugging and problem solving skills
9. Good communication skills - Written, Oral.
10. CWNA or equivalent certifications from Cisco/ Juniper/ Alcatel/ Ericsson will be preferred.
Location- Pune
Interested can share their cv- careers@taraspan.com| Flag | PURGE - 2 Answers If we have to allocate memory ...
If we have to allocate memory to a string of size n and read the string at run time character by character?
And we write the following code then why doesn't it works properly#include <stdio.h> #include <conio.h> #include <malloc.h> #include <stdlib.h> #include <string.h> int main() { int n,i; printf("Enter size n: "); scanf("%d",&n); char* str=(char*)calloc(n+1,sizeof(char)); for(i=0;i<n;i++) scanf("%c",&str[i]); str[n]='\0'; printf("%s",str); getch(); return 0; }
i wrote this but why doesnt it works properly??
- gdg March 17, 2014| Flag | PURGE - 2 Answers If we have to allocate memory ...
If we have to allocate memory to a string of size n and read the string at run time character by character?
And we write the following code then why doesn't it works properly#include <stdio.h> #include <conio.h> #include <malloc.h> #include <stdlib.h> #include <string.h> int main() { int n,i; printf("Enter size n: "); scanf("%d",&n); char* str=(char*)calloc(n+1,sizeof(char)); for(i=0;i<n;i++) scanf("%c",&str[i]); str[n]='\0'; printf("%s",str); getch(); return 0;
}
- gdg March 17, 2014
i wrote this| Flag | PURGE - 1 Answer Java Swt Tooltip
Hello all, I need your help on this
- prithvirulzzz March 15, 2014
I have a swt tooltip being set on a label.. The tooltip method will be called setTooltip(message) will be called from a different class and the setMessage(message) will be set in the class where tooltip object will be created.. Right now Im checking for null or empty condition before setting the tooltip message otherwise it would throw IllegalArgumentException.. so my code is as such
public void setTooltip(String message) {
if (message != null && !message.isEmpty()) {
tooltip.setMessage(message);
label.addMouseTrackListener(mouseTrackListener);
iconLabel.addMouseTrackListener(mouseTrackListener);
} else {
label.removeMouseTrackListener(mouseTrackListener);
iconLabel.removeMouseTrackListener(mouseTrackListener);
}
}
I need an option in the else condition because the control goes to that line even If tooltip has not been associated with the listener.| Flag | PURGE - 2 Answers Pursuing comp sci degree @ 33?
I've been working as an industrial designer for the past 10 years, but I am very interested in computer science. I began tinkering with Python and a few other languages about 2 years ago, and I am currently taking online MIT courses via EdX. My short term goal is to pass the courses, learn as much as I can, and get my certificates. I would love to pursue graduate study as well. Here's the thing: I just turned 33, and I've read that this is considered old in the software engineering industry. I'd like to see what people think about this. Any feedback would be greatly appreciated!
- Turing23 March 14, 2014| Flag | PURGE