自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 101 Symmetric Tree

题目链接:https://leetcode.com/problems/symmetric-tree/题目:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 /

2015-11-29 21:13:03 272

原创 100 Same Tree

题目链接:https://leetcode.com/problems/same-tree/题目:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and t

2015-11-29 20:21:43 318

原创 97 Interleaving String

题目链接:https://leetcode.com/problems/interleaving-string/题目:Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.For example,Given:s1 = "aabcc",s2 = "dbbca",When s3 = "aadbbcbc

2015-11-29 19:59:56 342

原创 95 Unique Binary Search Trees II

题目链接:https://leetcode.com/problems/unique-binary-search-trees-ii/题目:Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program

2015-11-28 12:59:53 5467 1

原创 96 Unique Binary Search Trees

题目链接:https://leetcode.com/problems/unique-binary-search-trees/题目:Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of

2015-11-25 21:04:50 1623

转载 RDD.treeAggregate 的用法

原文链接:http://stackoverflow.com/questions/29860635/how-to-interpret-rdd-treeaggregateSpark 源码:GradientDescent 中的函数 runMiniBatchSGD下有如下一段代码:val (gradientSum, lossSum, miniBatchSize) = data.sample(false, m

2015-11-23 16:21:34 4092

原创 94 Binary Tree Inorder Traversal

题目链接:https://leetcode.com/problems/binary-tree-inorder-traversal/题目:Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2

2015-11-21 18:30:10 501

原创 92 Reverse Linked List II

题目链接:https://leetcode.com/problems/reverse-linked-list-ii/题目:Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1-

2015-11-21 16:10:36 349

原创 90 Subsets II

题目链接:https://leetcode.com/problems/subsets-ii/题目:Given a collection of integers that might contain duplicates, nums, return all possible subsets.Note:Elements in a subset must be in non-descending ord

2015-11-18 21:21:59 365

原创 89 Gray Code

题目链接:https://leetcode.com/problems/gray-code/题目:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total number

2015-11-17 21:50:42 433

转载 java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries

转载链接:http://mangocool.com/detail_1_1434528570810.html在已经搭建好的集群环境Centos6.6+Hadoop2.7+Hbase0.98+Spark1.3.1下,在Win7系统Intellij开发工具中调试Spark读取Hbase。运行直接报错:15/06/11 15:35:50 ERROR Shell: Failed to locate the w

2015-11-13 20:53:52 1628

原创 84 Largest Rectangle in Histogram

题目链接:https://leetcode.com/problems/largest-rectangle-in-histogram/题目:Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rec

2015-11-04 21:51:41 366

原创 88 Merge Sorted Array

题目链接:https://leetcode.com/problems/merge-sorted-array/题目:Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:You may assume that nums1 has enough space (si

2015-11-03 20:18:01 332

原创 81 Search in Rotated Sorted Array II

题目链接:https://leetcode.com/problems/search-in-rotated-sorted-array-ii/题目:Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and

2015-11-03 19:18:02 384

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除