- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 [算法相关] Minimum Depth of Binary Tree
111. Minimum Depth of Binary TreeGiven 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
2016-04-29 15:01:10 404
原创 [算法相关] Path Sum-二叉树相加之和
链接:https://leetcode.com/problems/path-sum/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.Fo
2016-04-28 23:14:52 1141
原创 Mysql_JDBC_myeclipse_初探
1,显示当前的数据库: showdatabases2,选择一个数据库:use binbin:3, 在数据库中创建列表:Create table dept(deptno int primary key,dname varchar(14),loc varchar (13));4,显示当前数据表,show tables:
2016-04-20 23:25:24 1227
原创 [算法相关] 9. Palindrome Number-数字的回文
9. Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (ie, -1)If you
2016-04-17 22:47:32 522
原创 [算法相关] Pascal's Triangle II --杨辉三角形-链表和数组
119. Pascal's Triangle II Total Accepted:72830Total Submissions:226423Difficulty:EasyGiven an indexk, return thekthrow of the Pascal's triangle.For example, giv
2016-04-17 21:51:03 681
原创 [算法相关] 118. Pascal's Triangle-杨辉三角形
杨辉三角形GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]]给定一个数,写出其杨辉三角形对应式。
2016-04-17 15:12:29 425
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人