摘要:
[抄题]: You need to find the largest value in each row of a binary tree. Example: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问 阅读全文
posted @ 2018-07-27 22:24
苗妙苗
阅读(154)
评论(0)
推荐(0)
摘要:
[抄题]: 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 lis 阅读全文
posted @ 2018-07-27 15:48
苗妙苗
阅读(236)
评论(0)
推荐(0)
摘要:
[抄题]: Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip 阅读全文
posted @ 2018-07-27 12:18
苗妙苗
阅读(189)
评论(0)
推荐(0)
摘要:
[抄题]: Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into knon-empty subsets whose sums are 阅读全文
posted @ 2018-07-27 10:11
苗妙苗
阅读(256)
评论(0)
推荐(0)