摘要:
Description: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 ... 阅读全文
posted @ 2015-06-18 17:22
Rosanne
阅读(153)
评论(0)
推荐(0)
摘要:
Description:Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 uniqu... 阅读全文
posted @ 2015-06-18 17:09
Rosanne
阅读(115)
评论(0)
推荐(0)
摘要:
Description:Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size t... 阅读全文
posted @ 2015-06-18 16:49
Rosanne
阅读(128)
评论(0)
推荐(0)
摘要:
Description:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,G... 阅读全文
posted @ 2015-06-18 16:32
Rosanne
阅读(127)
评论(0)
推荐(0)
摘要:
Description:Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2... 阅读全文
posted @ 2015-06-18 16:16
Rosanne
阅读(175)
评论(0)
推荐(0)

浙公网安备 33010602011771号