Apple 电面

分享一下9月18号的apple 电面。
第一道是给了一个server类,写一些response的逻辑。1分钟内有100个request则返回response,超过100个则返回exception。
第二题是算法题,给一个sorted array和target number,要求返回target number第一次 出现的位置和最后一次出现的位置。第二题蠡口 三思