推荐:数据科学课程和书籍清单以及培训讲座


一亩三分地论坛

 找回密码
 获取更多干活,快来注册

一亩三分地官方iOS手机应用下载
查看: 4854|回复: 1
收起左侧

Amazon OA1 + OA2 3/2 due

[复制链接] |试试Instant~ |关注本帖
zhushigang 发表于 2016-3-3 07:34:50 | 显示全部楼层 |阅读模式

2016(1-3月) 码农类 硕士 全职@Amazon - 内推 - 在线笔试 |Otherfresh grad应届毕业生

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

您需要 登录 才可以下载或查看,没有帐号?获取更多干活,快来注册

x
Timeline: 2/4内推, 2/10收到RC5邮件填表,2/17收到OA1(2/24 due),2/24提交,2/25收到OA2(3/2 due),3/2提交

OA1:
debug: 地里面经都有,无难度
reasoning: 老题,快递费+6人桌
coding: sliding window minimum (leetcode #239 最大变最小)
. more info on 1point3acres.com
OA2: . 鍥磋鎴戜滑@1point 3 acres
work simulation: 略
coding: BST min path,Round Robin

附上根据地里面经总结的coding题:
OA1:
1. Overlap rectangle

2. K closest points. 1point3acres.com/bbs
. from: 1point3acres.com/bbs
3. window sum. 1point 3acres 璁哄潧

4. longest palindromic substring
https://leetcode.com/problems/longest-palindromic-substring/. From 1point 3acres bbs

5. merge two linked list
https://leetcode.com/problems/merge-two-sorted-lists/
.鏈枃鍘熷垱鑷1point3acres璁哄潧
6. two sum count / do not count duplicates.1point3acres缃

7. Check subtree

8. Valid Parentheses

9. reverse second half of linkedlist. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
. 1point3acres.com/bbs
10. graycode check. 鐗涗汉浜戦泦,涓浜╀笁鍒嗗湴

11. rotate String.鏈枃鍘熷垱鑷1point3acres璁哄潧

12. remove vowel. from: 1point3acres.com/bbs

13. Search Matrix II

14. Sliding window minimum
https://leetcode.com/problems/sliding-window-maximum/

15. optimal Capacity

16. The maximum of minimums of pathes in matrix. visit 1point3acres.com for more.


OA2: .1point3acres缃
1. Round Robin Scheduling:
Given an array of arriving time ,an array of processing time and the quantum number q. Calculate the average waiting time of the system using Round Robin scheduling. 鏉ユ簮涓浜.涓夊垎鍦拌鍧.

. From 1point 3acres bbs2. Rotate Matrix. Given a n by n matrix and a flag, return the matrix rotated right if flag == 1 else return the matrix rotated left.

3. Return the minimum sum of a path in a BST from node to leaf.

4. Insert value into a circular sorted linkedlist. (Given node may not be the smallest)

5. Greatest Common Divisor, given an array of integers, return the gcd of them. . 1point 3acres 璁哄潧

6. Shortest job first scheduling:
Given an array of arriving time and an array of processing time. Calculate the average waiting time of the system using shortest job first scheduling.

7. Count Cache Miss (LRU)
Given an array of integers and the size of a cache, return the cache miss count. (If cache hit, move this int to the tail, if size exceeds size, remove head)
. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
8. Day change: given an array and number of days. Rules: if arr[i-1] == arr[i+1], arr = 0 else arr = 1, do that for n days.
Similar: leetcode Game of life https://leetcode.com/problems/game-of-life/
. visit 1point3acres.com for more.
9. Find path in maze
Given a m*n matrix representing a Maze, 0 is a path and 1 is a wall. a mouse is at [0,0] and a cheese (represented as 9) is at [i, j]. Return true if there is a path from the mouse to the cheese else return false.

(OA1) 10. Check subtree. Check weather t2 is a subtree of t1

(OA1) 11. Valid parenthesis. from: 1point3acres.com/bbs

(OA1) 12. reverse second half of linked list. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴

13. Same Tree, check if 2 tree are the same

14. find out number of arithmetic sequence in array, if result > 1 billion return -1.

15. Amplitude, find the difference between the maximum and minimum value in a binary tree.

(OA1) 16. K closest point

(OA1) 17. Find loop in Linked list / find the head of the loop
. more info on 1point3acres.com
18. Given four integers, public int solution(int A, int B, int C, int D){}
变换他们的位置,使得,F(S) = abs(S[0]-S[1]) + abs(S[1]-S[2]) + abs(S[2]-S[3]) 最大。其中,S[0],S[1],S[2],S[3]就是ABCD要对应的位置。

(OA1) 19. window sum

. from: 1point3acres.com/bbs

补充内容 (2016-3-4 01:06):
3/3 收到onsite。。。

评分

6

查看全部评分

hurtlocker 发表于 2016-3-3 15:38:40 | 显示全部楼层
coding总结得很详细也全面,谢谢啦!

请问work simulation能再具体讲讲么?有复习资料可分享下?-google 1point3acres
.1point3acres缃
貌似只能给你一个大米... 喏都给你了
回复 支持 反对

使用道具 举报

本版积分规则

关闭

一亩三分地推荐上一条 /5 下一条

手机版|小黑屋|一亩三分地论坛声明

custom counter

GMT+8, 2017-8-17 18:08

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

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