摘要: 可能是2018 亚麻的OA题。 1.给字符串, 找出里面长度为N的, 并且里面字符只有一次重复的字串。例子:s: asdfaghjkjqoiiii;N=5. 返回asdfa ghjkj hjkjq jkjqo jqoii. 阅读全文
posted @ 2018-01-16 12:52 HisonSanDiego 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 亚麻的OA题 reverse words(leetcode有),要求尽可能time/space efficient 1,input的string的前后空格都要去除 2,若是input string 中的俩个word 之间有多个空格, 则仅需要保留一个。 Clarification: What con 阅读全文
posted @ 2018-01-15 15:14 HisonSanDiego 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 这是亚麻的OA题 问题描述 Given a node from a cyclic linked list which has been sorted, write a function to insert a value into the list such that it remains a cy 阅读全文
posted @ 2018-01-14 15:43 HisonSanDiego 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 这是亚麻的OA 题 带补充。。。。 阅读全文
posted @ 2018-01-14 15:38 HisonSanDiego 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 这是亚麻OA题 问题描述: 给一个 int[] arrival time, int[] Execution time, int q. 例子: 【0,1,4】 【5,2,3】 q=3. 输出的是average wait time 2.3333333 阅读全文
posted @ 2018-01-14 15:35 HisonSanDiego 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 这是亚麻2018 年新题的第一题: // find K distinct substring whithout duplication #include <iostream> // std::cout #include <algorithm> // std::make_heap, std::pop_ 阅读全文
posted @ 2018-01-14 14:30 HisonSanDiego 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 这是亚麻2018 年的新题2 阅读全文
posted @ 2018-01-14 14:28 HisonSanDiego 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 这是亚麻OA 题 阅读全文
posted @ 2018-01-14 14:18 HisonSanDiego 阅读(128) 评论(0) 推荐(0) 编辑