📣 黑五价提前开抢|VIP一年通行证5折,蓝莓、Offer多多同步特惠
查看: 6418| 回复: 7
跳转到指定楼层
上一主题 下一主题
收起左侧

amazon online test

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
一共三道题
第一题是 find loops in linkedlist
第二题是 Question 2 / 3 (Q9. SI)
Given a list of test results (each with a test date, Student ID, and the student’s Score), return the Final Score for each student. A student’s Final Score is calculated as the average of his/her 5 highest test scores. You can assume each student has at least 5 test scores.
You may use the JDK or the standard template library. The solution will be evaluated on correctness, runtime complexity (big-O), and adherence to coding best practices. A complete answer will include the following:
Document your assumptions
Explain your approach and how you intend to solve the problem
Provide code comments where applicable
Explain the big-O run time complexity of your solution. Justify your answer.
Identify any additional data structures you used and justify why you used them.
Only provide your best answer to each part of the question.class TestResult
Use one of the following skeletons for your solutions.
Java:
class TestResult {
      int studentId;
      String testDate;
      int testScore;
   }

public class FinalScoreQuestion {

   Map <Integer, Double> calculateFinalScores (List<TestResult> results) {}

第三题是合并链表题

第二题 之前看别人的帖子写的是 find close k points near origin out of n points,本质上和这道题没什么区别。

评分

参与人数 4大米 +19 收起 理由
soda小幻在美国 + 3 简直是及时雨!
kang1415926 + 10 感谢分享!
hellosniper + 3 很有用的信息!
adlxk + 3 感谢分享!

查看全部评分


上一篇:微软面试,查找第一次出现的最长重复子串
下一篇:发一个位运算bit manipulation的总结
🔗
Winsum 2013-10-25 01:05:56 | 只看该作者
全局:
很有用!楼主是什么时候收到的online assessment?
回复

使用道具 举报

🔗
xperzy 2014-1-23 09:10:08 | 只看该作者
全局:
请问 这个online test 是和网上别的oj一样当时就可以知道对错吗? test case是系统已经提供了的么?
回复

使用道具 举报

🔗
xperzy 2014-1-23 09:10:18 | 只看该作者
全局:
请问 这个online test 是和网上别的oj一样当时就可以知道对错吗? test case是系统已经提供了的么?
回复

使用道具 举报

🔗
 楼主| sumingche 2014-1-23 10:52:35 | 只看该作者
全局:
xperzy 发表于 2014-1-22 20:10
请问 这个online test 是和网上别的oj一样当时就可以知道对错吗? test case是系统已经提供了的么?

都没告诉你 就是一个text 让你输入些文本
回复

使用道具 举报

🔗
tracysong 2014-9-9 02:25:51 | 只看该作者
全局:
amazon是每年的online test题目都差不多还是怎么样?
回复

使用道具 举报

全局:
请问online test hold不住的时候能不能找场外援助。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表