摘要:
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 -- wh 阅读全文
posted @ 2020-09-26 22:35
苗妙苗
阅读(115)
评论(0)
推荐(0)
摘要:
Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer or a list -- whose elements may also be intege 阅读全文
posted @ 2020-09-26 11:09
苗妙苗
阅读(102)
评论(0)
推荐(0)
摘要:
Design and implement an iterator to flatten a 2d vector. It should support the following operations: next and hasNext. Example: Vector2D iterator = ne 阅读全文
posted @ 2020-09-26 00:46
苗妙苗
阅读(145)
评论(0)
推荐(0)