注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
第一轮,比较两个map,followup,如果内存放不下 怎么办
第二轮 我直接暴力解,不知道能不能优化
Given an Int array with number sequences delimited by 0s
AND an index location,
Return the number sequence associated with the index location
AND the original indexes of the sequence (as a "Range")
func sequenceAndRange(fro represents "6 through 8")
[1, 0, 2], 1 is this a valid case?
Returns: (the sequence the index AND the original indicies of the sequence) |