alisonlee659
BAN USER 0of 0 votes
AnswerGiven items as Shirt, Trouser, Shoes, Tie, Belt, Shocks, and dependencies as 
 alisonlee659 in United States
Tie can be worn after Shirt
Belt can be worn after Shirt and Trouser
Shocks can be worn after Trouser
Shoes can be worn after Shocks
Find various orders in which the activity of wearing clothes can be completed. Report Duplicate  Flag  PURGE
Amazon Software Engineer  0of 0 votes
AnswersImplement pow(x, n)
 alisonlee659 in United States Report Duplicate  Flag  PURGE
Bloomberg LP Software Engineer Algorithm  1of 1 vote
AnswersPick three numbers a, b, c from an array of integers to get the maximum product a * b * c.
 alisonlee659 in United States
Began with the O(N^3) solution. Then the interviewer give clues on optimization by sorting the array. Report Duplicate  Flag  PURGE
Bloomberg LP Software Engineer Algorithm  3of 3 votes
AnswersGiven a sorted array, find all the numbers that occur more than n/4 times.
 alisonlee659 in United States Report Duplicate  Flag  PURGE
Google Software Engineer Algorithm
Looking for interview experience sharing and coaching?
Visit AONECODE.COM for ONETOONE private lessons by FB, Google and Uber engineers!
SYSTEM DESIGN Courses (highly recommended for candidates of FB, LinkedIn, Amazon, Google & Uber etc.)
ALGORITHMS (conquer DP, Greedy, Graph, Advanced Algorithms & Clean Coding),
latest interview questions sorted by companies,
mock interviews.
Our students got hired from G, U, FB, Amazon, LinkedIn, MS and other toptier companies after weeks of training.
Email us aonecoding@gmail.com with any questions. Thanks!
SOLUTION:
Assume it's looking for the minimum overall distance for everyone to get a different bike.
def shorstOverallDistance(people, bikes):#coordinations of N people and N bikes
if not people:
return 0
size = len(people)
shortest_distance = None
for i in size:
for j in size:
distance = distanceBetween(people[i], bikes[j]) + shortestOverallDistance(people[:i] + people[i+1:], bikes[j] + bikes[j+1:])
if not shortest_distance or shortest_distance > distance:
shortest_distance = distance
return distance
def distanceBetween(p1, p2): #apply any custom distance function
#...

alisonlee659
February 03, 2018
Repmikebeasley033, Interviewer at Brooks Fashions
Working as an interviewer in Brooks Fashion's best amazing experience . Here I manage individuals which makes me refreshed . With ...
RepGet powerful wazifa to know who did black magic. Guru Ji is the master of black magic totke, kala jadu ...
Open Chat in New Window
Looking for coaching on interview preparation?
Visit AONECODE.COM for ONETOONE private lessons by FB, Google and Uber engineers!
System Design (for candidates of FB, LinkedIn, AMZ, Google and Uber etc)
Algorithms (DP, Greedy, Graph etc. advanced algorithms and clean coding)
Interview questions sorted by companies
Mock Interviews
Ace G, U, FB, Amazon, LinkedIn, MS and other toptier interviews in weeks of training.
Feel free to email us aonecoding@gmail.com with any questions. Thanks!
 alisonlee659 February 15, 2018