Leetcode
WordPPT哥
已从前端大坑跳到数据挖掘
展开
-
LeetCode Weekly Contest 40(1) - Average of Levels in Binary Tree
637. Average of Levels in Binary Tree Difficulty: Easy Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array.Example 1: Input: 3 / \ 9 20原创 2017-07-09 12:07:56 · 273 阅读 · 0 评论 -
LeetCode Weekly Contest 40(2) - Solve the Equation
640. Solve the Equation Difficulty: Medium Solve a given equation and return the value of x in the form of string "x=#value". The equation contains only '+', '-' operation, the variable x and its coeff原创 2017-07-09 12:31:32 · 630 阅读 · 0 评论 -
LeetCode Weekly Contest 40(3) - Shopping Offers
638. Shopping Offers Difficulty: Medium In LeetCode Store, there are some kinds of items to sell. Each item has a price.However, there are some special offers, and a special offer consists of one or mo原创 2017-07-09 12:45:59 · 1020 阅读 · 0 评论 -
LeetCode Weekly Contest 40(4) - Decode Ways II
639. Decode Ways II Difficulty: Hard A message containing letters from A-Z is being encoded to numbers using the following mapping way:'A' -> 1 'B' -> 2 ... 'Z' -> 26 Beyond that, now the encoded strin原创 2017-07-09 13:06:11 · 394 阅读 · 0 评论