摘要:
Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, except... 阅读全文
posted @ 2015-06-07 13:56
卖程序的小歪
阅读(2013)
评论(0)
推荐(0)
摘要:
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr... 阅读全文
posted @ 2015-06-07 13:41
卖程序的小歪
阅读(168)
评论(0)
推荐(0)
摘要:
Given an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference betweennums[i]andnums[j]is at mo... 阅读全文
posted @ 2015-06-07 11:31
卖程序的小歪
阅读(304)
评论(0)
推荐(0)
摘要:
Given an array of integers and an integerk, find out whether there there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and the d... 阅读全文
posted @ 2015-06-07 00:00
卖程序的小歪
阅读(160)
评论(0)
推荐(0)