Leetcode
文章平均质量分 78
解冻大魔王_
这个作者很懒,什么都没留下…
展开
-
Leetcode 804. Unique Morse Code Words python
International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a"maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on.For原创 2018-04-12 18:12:52 · 391 阅读 · 0 评论 -
111. Minimum Depth of Binary Tree Python
Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.Note: A leaf is a node with no children.Ex...原创 2018-04-25 17:11:19 · 218 阅读 · 0 评论 -
112. Path Sum Python
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Note: A leaf is a node with no children.Example:Give...原创 2018-04-25 17:15:34 · 134 阅读 · 0 评论 -
445. Add Two Numbers II Python
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contain a single digit. Add the two numbers and return i...原创 2018-04-26 16:18:35 · 295 阅读 · 0 评论