摘要:
题目: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out 阅读全文
posted @ 2019-04-14 16:36
silentteller
阅读(232)
评论(0)
推荐(0)
摘要:
题目: Find the sum of all left leaves in a given binary tree. Example: 分析: 给定一颗二叉树,求左叶子节点的和。 重点在于如何判断左叶子节点,如果一个节点的left存在,且left的left和right都为空,那么我们就可以将这个节 阅读全文
posted @ 2019-04-14 15:51
silentteller
阅读(131)
评论(0)
推荐(0)
摘要:
题目: Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has 阅读全文
posted @ 2019-04-14 15:38
silentteller
阅读(258)
评论(0)
推荐(0)
摘要:
题目: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, ca 阅读全文
posted @ 2019-04-14 15:22
silentteller
阅读(298)
评论(0)
推荐(0)

浙公网安备 33010602011771号