![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.解題思路:插入排序的核心思想是,對(duì)一個(gè)已經(jīng)排好序的序列,現(xiàn)...
題目: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...