题目 Implement an iterator over a binary search tree (BST). Your iterator ...
题目 Given an integer n, return the number of trailing zeroes in n!. Note:...
题目 Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1...
题目 Sort a linked list in O(n log n) time using constant space complexity...
题目 Sort a linked list using insertion sort. 思路 这道题花费了最多的时间。 复习了array的插入排...
题目 Design a stack that supports push, pop, top, and retrieving the minim...
题目: There are N students in a class. Some of them are friends, while som...
题目 Given a non-empty string s and a dictionary wordDict containing a lis...
题目: A linked list is given such that each node contains an additional ra...