- 博客(4)
- 收藏
- 关注
原创 Java IO流
1.IO流分类:字节流(InputStream/OutputStream)和字符流(Reader/Writer) 网上找到的一个IO流分类图,真心太全了。。 2.IO流应用:读取与写入文件 读取文件代码: public class ReadFileIODemo { public static void main(String[] args) throws IOException
2017-09-23 10:37:56 302
原创 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 610
原创 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 393
原创 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 940
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人