leetcode
文章平均质量分 68
Ellenfeifei
喜欢健身,热爱互联网,积极向上,正在努力中......
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode 637. Average of Levels in Binary Tree(java easy)
题目: Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. Example: Input: 3 / \ 9 20 / \ 15 7 Output: [3, 14.5, 11] Ex原创 2017-09-16 23:14:24 · 450 阅读 · 0 评论 -
leetcode 564. Find the Closest Palindrome(java)
题目: Given an integer n, find the closest integer (not including itself), which is a palindrome. The 'closest' is defined as absolute difference minimized between two integers. example: Input原创 2017-09-16 10:09:56 · 1000 阅读 · 0 评论 -
LeetCode 322. Coin Change(java medium)
1.动态规划 将问题分解成子问题,自底向上的求解子问题的最优解,进而求出原问题的一个最优解(有可能有多个最优解,只求出其中的一个即可)。 2.题目 You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewe原创 2017-09-21 08:21:53 · 658 阅读 · 0 评论
分享