由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 请教一道Amazon的面试题
相关主题
请教一道milestone 排列的题目(Amazon)简短电面
欢迎大家积极讨论一个ms简单的算法面试题Is there a way to cover the gap between Apri 1st and Oct for the H1B
问个面试题一个经典的随机数的问题。求教。
问个amazon面试题difference between static used in c and c++
A家面试题:Edit Distance 要求每一步都是个单词[合集] 领导上课得了很多A+,但是学校成绩单A+和A都算4.0
请教一个google的面试题Difference between H1 B application and H1 B transfer?
面试题求解[合集] 回复:cs菜鸟求建议
fragomen IHP没有更新milestonesTwitter set price between $28 and $30 per share,
相关话题的讨论汇总
话题: distance话题: between话题: milestones话题: random话题: given
进入JobHunting版参与讨论
1 (共1页)
m****m
发帖数: 11
1
There is a straight roads with 'n' number of milestones. You are given an
array with the distance between all the pairs of milestones in some random
order. Find the position of milestones.
Example:
Consider a road with 4 milestones(a,b,c,d) :
a <--- 3Km --->b<--- 5Km --->c<--- 2Km --->d
Distance between a and b = 3
Distance between a and c = 8
Distance between a and d = 10
Distance between b and c = 5
Distance between b and d = 7
Distance between c and d = 2
All the above values are given in a random order say 7, 10, 5, 2, 8, 3.
The output must be 3,5,2 or 2,5,3
谢谢!
B*******1
发帖数: 2454
1 (共1页)
进入JobHunting版参与讨论
相关主题
Twitter set price between $28 and $30 per share,A家面试题:Edit Distance 要求每一步都是个单词
急问h1b laid off, 如何解决身份问题请教一个google的面试题
Gap between h1b transfer and current h1b面试题求解
between jobs的时光真是爽fragomen IHP没有更新milestones
请教一道milestone 排列的题目(Amazon)简短电面
欢迎大家积极讨论一个ms简单的算法面试题Is there a way to cover the gap between Apri 1st and Oct for the H1B
问个面试题一个经典的随机数的问题。求教。
问个amazon面试题difference between static used in c and c++
相关话题的讨论汇总
话题: distance话题: between话题: milestones话题: random话题: given