摘要: Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list -- w 阅读全文
posted @ 2020-08-04 10:46 苗妙苗 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Implement an iterator to flatten a 2d vector. Example: Input: 2d vector = [ [1,2], [3], [4,5,6] ] Output: [1,2,3,4,5,6] Explanation: By calling next r 阅读全文
posted @ 2020-08-04 07:49 苗妙苗 阅读(97) 评论(0) 推荐(0) 编辑