摘要:
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 思路:利用快慢指针找到中间节点,作为根节点,然后左子树即为左边链表部分,右子树即 阅读全文
posted @ 2017-03-26 23:27
hellowOOOrld
阅读(858)
评论(0)
推荐(0)
摘要:
We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself. Now, given an integer n, write 阅读全文
posted @ 2017-03-26 11:16
hellowOOOrld
阅读(328)
评论(0)
推荐(0)
摘要:
Given two strings representing two complex numbers. You need to return a string representing their multiplication. Note i2 = -1 according to the defin 阅读全文
posted @ 2017-03-26 11:13
hellowOOOrld
阅读(481)
评论(0)
推荐(0)


浙公网安备 33010602011771号