![Avatar notebook default](https://cdn2.jianshu.io/assets/default_avatar/avatar-notebook-default-640f7dde88592bdf6417d8ce1902636e.png)
问题:Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1...
Given a binary tree, return the preorder traversal of its nodes' values....
问题:Given a binary tree, return the postorder traversal of its nodes' val...
问题:Sort a linked list using insertion sort.解题思路:插入排序的核心思想是,对一个已经排好序的序列,现...
题目:Sort a linked list in O(nlogn) time using constant space complexity. ...
题目:Given n points on a 2D plane, find the maximum number of points that ...
Evaluate the value of an arithmetic expression in Reverse Polish Notatio...
问题:Given a binary tree, find its minimum depth.The minimum depth is the ...
There are N children standing in a line. Each child is assigned a rating...
文集作者