摘要:
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For exam 阅读全文
摘要:
206.Reverse Linked List Reverse a singly linked list. Tips:实现从尾到头打印一个链表。 以下代码包括两张方法: ①使用栈实现,不改变原链表。先读入,后输出。典型的先进后出,可用栈来实现。 ②改变原来链表的指针方向。 阅读全文
摘要:
198.HouseRobber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constr 阅读全文