摘要: the original point is considered as the (0,0); 阅读全文
posted @ 2018-01-17 14:49 HisonSanDiego 阅读(239) 评论(0) 推荐(0) 编辑
摘要: input是一个arraylist,里面每一个element是一个pair,studentid和他的一个score。code就是要把这个list里面的所有学生的所有分数都读进去 然后计算每一个学生最高5个分数的平均值 然后output一个map key是id value是平均分. 阅读全文
posted @ 2018-01-17 13:33 HisonSanDiego 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 这是亚麻的OA题, leetcode链接。https://leetcode.com/problems/course-schedule-ii/description/ the code listed here has passed all the test case in leetcode. 阅读全文
posted @ 2018-01-17 08:58 HisonSanDiego 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 这是亚麻的OA 题。 一个滑动窗遍历数组,求滑动窗再每个时刻的和 阅读全文
posted @ 2018-01-17 07:54 HisonSanDiego 阅读(284) 评论(0) 推荐(0) 编辑