LeetCode
文章平均质量分 81
KuoKwok
这个作者很懒,什么都没留下…
展开
-
详细解释Same Tree的解法
原题目:100. 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 the nodes have the sam原创 2016-12-14 20:52:30 · 549 阅读 · 0 评论 -
Single Number III_260
原题的描述如下: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. For exam原创 2016-12-04 23:04:27 · 222 阅读 · 0 评论 -
436. Find Right Interval
Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal to the end point of the interval i, which can be called that j is on原创 2016-12-19 11:24:47 · 231 阅读 · 0 评论 -
318 Maximum Product of Word Lengths解法解析
题目为: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assume that each word will contain only lower原创 2016-12-19 15:43:54 · 258 阅读 · 0 评论